Simplifying Filebeat JSON Output Format


#1

Hello,

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?

Thanks!


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

You can use the include_fields filter.

filter:
 - include_fields.fields: ["message"]

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


#3

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