I am parsing a log file which has error from 3 different process.
I have added the input file in path and have added the 3 regex pattern in include line unique to 3 processes.
Can I add field column which will be populated with the log line based on the regex pattern it matched in include_lines tag?
eg:
logs are:
[p1_err] adc....
[p2_err] adc....
[p3_warn] adc....
[p1_warn] adc....
[p3_err] adc....
....
in my filebeat.yml
filebeat.inputs:
- type: log
paths:- <log_file>
include_lines: ['p1_err', 'p2_err', 'p3_err']
- <log_file>
I want to see the count of p1_err,p2_err,p3_err lines in output on kibana.