Skip to content

Commit

Permalink
chore: update kafka demo pipeline (#56)
Browse files Browse the repository at this point in the history
* chore: update kafka demo pipeline

* chore: update kafka log demo log table schema
  • Loading branch information
paomian authored Oct 28, 2024
1 parent 9bf5513 commit 56386f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kafka-ingestion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ mysql> desc demo_logs;
| Column | Type | Key | Null | Default | Semantic Type |
+------------+---------------------+------+------+---------+---------------+
| ip | String | | YES | | FIELD |
| method | String | | YES | | FIELD |
| method | String | PRI | YES | | TAG |
| protocol | String | PRI | YES | | TAG |
| path | String | | YES | | FIELD |
| protocol | String | | YES | | FIELD |
| user_agent | String | | YES | | FIELD |
| status | UInt32 | | YES | | FIELD |
| status | UInt32 | PRI | YES | | TAG |
| size | UInt32 | | YES | | FIELD |
| datetime | TimestampNanosecond | PRI | NO | | TIMESTAMP |
| timestamp | TimestampNanosecond | | YES | | FIELD |
Expand Down
11 changes: 10 additions & 1 deletion kafka-ingestion/config_data/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ processors:
transform:
- fields:
- ip
type: string
- fields:
- method
- path
- protocol
type: string
index: tag
- fields:
- path
- user_agent
type: string
index: fulltext
- fields:
- status
type: uint32
index: tag
- fields:
- size
type: uint32
- fields:
Expand Down

0 comments on commit 56386f3

Please sign in to comment.