# Question about conditions in kafka.output topics option topics

**URL:** <https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 31, 2017, 6:55pm UTC](https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039 "2017-08-31T18:55:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdukacheva](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tdukacheva](https://discuss.elastic.co/u/tdukacheva)\
**Post date:** [August 31, 2017, 6:55pm UTC](https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039/1 "2017-08-31T18:55:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tdukacheva](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tdukacheva](https://discuss.elastic.co/u/tdukacheva)\
**Post date:** [September 1, 2017, 4:32am UTC](https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039/2 "2017-09-01T04:32:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [September 1, 2017, 8:00pm UTC](https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039/3 "2017-09-01T20:00:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 29, 2017, 8:00pm UTC](https://discuss.elastic.co/t/question-about-conditions-in-kafka-output-topics-option-topics/99039/4 "2017-09-29T20:00:28Z")

</div>

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