# Logstash configuration input error with if statement

**URL:** https://discuss.elastic.co/t/logstash-configuration-input-error-with-if-statement/246019
**Category:** Logstash
**Created:** [August 23, 2020, 12:55pm UTC](https://discuss.elastic.co/t/logstash-configuration-input-error-with-if-statement/246019 "2020-08-23T12:55:19Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [August 23, 2020, 3:57pm UTC](https://discuss.elastic.co/t/logstash-configuration-input-error-with-if-statement/246019/5 "2020-08-23T15:57:11Z")

</div>

You cannot use a conditional like that inside an input configuration. See [this](https://discuss.elastic.co/t/filter-cef/181215/5) thread for a way to do this using multiple pipelines.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-configuration-input-error-with-if-statement/246019)._
