Hi, I need to configure multiple topics using conditions but looks like multiple conditions in kafka.output section don't work.
topics:
- topic: "selene-access-log"
when:
and:
- equals:
logType: "access"
- regexp:
source: "selene"
- topic: "selene-error-log"
when:
and:
- equals:
logType: "error"
- regexp:
source: "selene"
I try to use the same logic what exists for processors.
The error is
Starting filebeat: filebeat2017/08/31 18:25:22.732984 beat.go:339: CRIT Exiting: error loading config file: yaml: line 144: found character that cannot start any token
Exiting: error loading config file: yaml: line 144: found character that cannot start any token
and it point at " - equals:"
Can't I use a multiple conditions there?
Thank you