deployment/vector: add example for JSON stream config

Follow-up 16eeb4eb33

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-04-16 13:57:54 +02:00
parent 16eeb4eb33
commit 9064602d00
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -19,19 +19,14 @@
'''
[sinks.vlogs]
type = "elasticsearch"
type = "http"
inputs = [ "msg_parser" ]
endpoints = [ "http://victorialogs:9428/insert/elasticsearch/" ]
mode = "bulk"
api_version = "v8"
uri = "http://victorialogs:9428/insert/jsonline?_stream_fields=source_type,host,container_name&_msg_field=log.msg&_time_field=timestamp"
encoding.codec = "json"
framing.method = "newline_delimited"
compression = "gzip"
healthcheck.enabled = false
[sinks.vlogs.query]
_msg_field = "log.msg"
_time_field = "timestamp"
_stream_fields = "source_type,host,container_name"
[sinks.vlogs.request.headers]
AccountID = "0"
ProjectID = "0"