Skip to content

Commit

Permalink
refactor: use default built-in pipeline (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 authored Nov 8, 2024
1 parent aa50f5f commit 24b7192
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions docs/greptimecloud/integrations/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,23 @@ tls = {}
type = "demo_logs"
format = "json"

[sinks.logs_out]
[transforms.logs_json]
type = "remap"
inputs = ["logs_in"]
source = '''
. = parse_json!(.message)
'''

[sinks.logs_out]
inputs = ["logs_json"]
type = "greptimedb_logs"
endpoint = "https://<host>"
compression = "gzip"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
table = "demo_logs"
pipeline_name = "demo_pipeline"
pipeline_name = "greptime_identity"
```

Execute Vector with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,23 @@ tls = {}
type = "demo_logs"
format = "json"

[sinks.logs_out]
[transforms.logs_json]
type = "remap"
inputs = ["logs_in"]
source = '''
. = parse_json!(.message)
'''

[sinks.logs_out]
inputs = ["logs_json"]
type = "greptimedb_logs"
endpoint = "https://<host>"
compression = "gzip"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
table = "demo_logs"
pipeline_name = "demo_pipeline"
pipeline_name = "greptime_identity"
```

启动 Vector:
Expand Down

0 comments on commit 24b7192

Please sign in to comment.