Hello,
is it possible to create configuration with multiple processors, using same processor name, but different conditions?
I`d like to add tags for specific log files, like all *.log files must be tagged as "log" but all *.out files, as "out", same time - access.log I would like to tagg as "access".
Tried to add multiple processors in filebeat.yml
:
processors:
- add_tags:
when:
contains:
log.file.path: ".log"
tags: ["log"]
processors:
- add_tags:
when:
contains:
log.file.path: ".out"
tags: ["out"]
processors:
- add_tags:
when:
contains:
log.file.path: "access.log"
tags: ["access"]
Unfortunately, looks like only last processor works.
Is it possible to add more than one add_tags processor in global config?