Can I add fields to json format data? (at filebeat)

I take json format data and send it to logstash from filebeat.
{"key1":"val1","key2":"val2"}
At this time, I want to set index information in filebeat and send it to logstash.

How can I do it ??

You can add fields using the fields setting either in the input or globally. Filebeat 7.0 also adds an add_fields processor. The Logstash output also has an index setting.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.