I need to write a filebeat.yml for reading jenkins logs and then stashing the same in ELK.
I have come across this filter and want to implement the same in filebeat.yml. I have made changes accordingly but stuck here in the add_fields part of this filter plugin.
Can anyone help me in adding fields in filbeat.yml similar to the add_field in this filter plugin?
Filebeat.yml
#=========================== Filebeat inputs =============================
filebeat.inputs:
- type: log
enabled: true
paths:
- /opt/app/elk/logs/jenkins.log
multiline.pattern: '^%{MONTH} %{MONTHDAY}, %{YEAR} %{TIME} (AM|PM)'
multiline.negate: true
multiline.match: before

