# If statment not working event.dataset

**URL:** <https://discuss.elastic.co/t/if-statment-not-working-event-dataset/201261>\
**Category:** Logstash\
**Created:** [September 26, 2019, 2:57pm UTC](https://discuss.elastic.co/t/if-statment-not-working-event-dataset/201261 "2019-09-26T14:57:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![forestnd](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@forestnd](https://discuss.elastic.co/u/forestnd)\
**Post date:** [September 26, 2019, 2:57pm UTC](https://discuss.elastic.co/t/if-statment-not-working-event-dataset/201261/1 "2019-09-26T14:57:59Z")

</div>

Hay all

I am treying with logstash to add an tag where ever filebeats pass an nignx.access

> ```
> if [event.dataset] == "nginx.access" {
> mutate { add_tag => ["nginx"] }
> 
> }
> 
> ```

But for some reason they are not being picked up, all other ones i am trying where the feild does not have an "." In it.

What am i missing??

---

<div class="post-metadata">

**Author:** ![forestnd](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@forestnd](https://discuss.elastic.co/u/forestnd)\
**Post date:** [September 26, 2019, 3:02pm UTC](https://discuss.elastic.co/t/if-statment-not-working-event-dataset/201261/2 "2019-09-26T15:02:02Z")

</div>

OMG ☹ just after asking this, my next google search found the answer ☹

[event.dataset] is showen in logstash as [event][dataset]

---

<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:** [October 24, 2019, 3:02pm UTC](https://discuss.elastic.co/t/if-statment-not-working-event-dataset/201261/3 "2019-10-24T15:02:10Z")

</div>

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