A) Is there a way to add tags or fields - conditionally in filebeat.
For eg: if the input file is xyz then add tag or field XYZ
if the input file is abc then add tag or field ABC
OR
b) Alternatively can we add tag/field per prospector path ?
-
input_type: log
paths:
- /Users/vramakrishnan/work/control-plane/testoutput/cascaded.test.INFO
fields: {service: "cascade"}
symlinks: true
- /Users/vramakrishnan/work/control-plane/testoutput/cascaded.test.INFO
-
input_type: log
Paths that should be crawled and fetched. Glob based paths.
paths:
- /Users/vramakrishnan/work/control-plane/testoutput/everest.test.INFO
fields: {service: "everest"}
- /Users/vramakrishnan/work/control-plane/testoutput/everest.test.INFO