diff --git a/docs/greptimecloud/integrations/vector.md b/docs/greptimecloud/integrations/vector.md index 3c4e49edd..2f8f24b44 100644 --- a/docs/greptimecloud/integrations/vector.md +++ b/docs/greptimecloud/integrations/vector.md @@ -28,8 +28,15 @@ 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://" compression = "gzip" @@ -37,7 +44,7 @@ dbname = "" username = "" password = "" table = "demo_logs" -pipeline_name = "demo_pipeline" +pipeline_name = "greptime_identity" ``` Execute Vector with: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/greptimecloud/integrations/vector.md b/i18n/zh/docusaurus-plugin-content-docs/current/greptimecloud/integrations/vector.md index 3f4b72ef6..ac8d66412 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/greptimecloud/integrations/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/greptimecloud/integrations/vector.md @@ -29,8 +29,15 @@ 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://" compression = "gzip" @@ -38,7 +45,7 @@ dbname = "" username = "" password = "" table = "demo_logs" -pipeline_name = "demo_pipeline" +pipeline_name = "greptime_identity" ``` 启动 Vector: