Question about conditions in kafka.output topics option topics


(Tanya Dukacheva) #1

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


(Tanya Dukacheva) #2

I found the real issue. It was "\t" characters. I replaces them by spaces and config works.


(Andrew Kroh) #3

Our config is YAML and YAML does not allow tabs. http://www.yaml.org/faq.html


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.