Formatting output of Filebeat Kafka plugin


Using Filebeat 5.1 (latest).
Currently when I log one line with message "hello", it comes in Kafka as this:


Is there a way to get only "hello" into kafka? I don't need the meta information. I see that in Logstash, you can use format => "%{message}". Is a similar thing provided here?

In Filebeat 5.2.0 there was an enhancement to support this. The config will be done as:

    string: '%{[message]}'

See codec documentation:

You can test with a snapshot build until 5.2.0 is released.

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