You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @dw130
it's possible to set custom fields in general options of filebeat (or for each input separately) and use them in elasticsearch output like this:
Is your question request related to a specific component?
VictoriaLogs
Describe the question in detail
hi,use filebeat to collect log to victoriaLog
use the sample conf
https://docs.victoriametrics.com/victorialogs/data-ingestion/filebeat/
output.elasticsearch:
hosts: ["http://localhost:9428/insert/elasticsearch/"]
parameters:
_msg_field: "message"
_time_field: "@timestamp"
_stream_fields: "host.hostname,log.file.path"
How to add some custom tag in the _stream_fields?
for example add region = xx1, app = xx2 into the _stream_fields
Thanks
Troubleshooting docs
The text was updated successfully, but these errors were encountered: