# Logstash filter not working. Probably my fault :D

**URL:** <https://discuss.elastic.co/t/logstash-filter-not-working-probably-my-fault-d/105811>\
**Category:** Logstash\
**Created:** [October 30, 2017, 9:30pm UTC](https://discuss.elastic.co/t/logstash-filter-not-working-probably-my-fault-d/105811 "2017-10-30T21:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 31, 2017, 6:07am UTC](https://discuss.elastic.co/t/logstash-filter-not-working-probably-my-fault-d/105811/2 "2017-10-31T06:07:21Z")

</div>

> if "538" in [EventID] {

Change to:

```
if [EventID] == 538 {

```

Numeric values should be compared to numeric literals.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-filter-not-working-probably-my-fault-d/105811)._
