# If statement is failing to match for certain values.. pls help

**URL:** <https://discuss.elastic.co/t/if-statement-is-failing-to-match-for-certain-values-pls-help/210438>\
**Category:** Logstash\
**Created:** [December 3, 2019, 11:31pm UTC](https://discuss.elastic.co/t/if-statement-is-failing-to-match-for-certain-values-pls-help/210438 "2019-12-03T23:31:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 3, 2019, 11:51pm UTC](https://discuss.elastic.co/t/if-statement-is-failing-to-match-for-certain-values-pls-help/210438/2 "2019-12-03T23:51:17Z")

</div>

> [@Cdnvballer](#):
>
> [syslog][system][hostname]

You are testing [system][syslog][hostname], not [syslog][system][hostname]

---

_[View the full topic](https://discuss.elastic.co/t/if-statement-is-failing-to-match-for-certain-values-pls-help/210438)._
