Hello.
I need Filebeat 7.9.2 to add tags based on content.
What I've tried:
- add_tags:
when:
contains:
request:"/image/"
tags: [image]
- add_tags:
when:
contains:
request:"/api/"
tags: [api]
Not sure whether it works or not, Filebeat fails to start
Exiting: Failed to start crawler: starting input failed: Error while initializing input: wrong type, expect map accessing 'filebeat.inputs.1.processors.2.add_tags.when.contains'
Please advise what's the issue here and how conditional tagging can be implemented in proper way