Simplifying Filebeat JSON Output Format



I am new working with Filebeat and think it is a wonderful tool. I am currently using it to replace a tool that pushes weblogs to Kafka, and I want to just pass the "message" through without the other values. Is this possible?


How to omit filebeat fields such as source file path?
(Andrew Kroh) #2

You can use the include_fields filter.

 - include_fields.fields: ["message"]

That will leave message, type, and @timestamp in the event.


Thanks Andrew! That answers my question.I was hoping to just push the single field as my consumer has no use for the timestamp or type fields but this does get me mostly there..

(system) #4