# Elasticsearch Filter Syntax

**URL:** https://discuss.elastic.co/t/elasticsearch-filter-syntax/254793
**Category:** Logstash
**Created:** [November 9, 2020, 4:35pm UTC](https://discuss.elastic.co/t/elasticsearch-filter-syntax/254793 "2020-11-09T16:35:24Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [November 9, 2020, 8:43pm UTC](https://discuss.elastic.co/t/elasticsearch-filter-syntax/254793/3 "2020-11-09T20:43:13Z")

</div>

> [@ksremo](#):
>
> i dont really understand when if have to use [event][id] and when [event.id]

[event.id] is a field with a dot in its name.

```
{ "event.id": 1 }

```

[event][id] is an object called [event] that contains an [id] field

```
{ "event": { "id": 1 } }

```

logstash uses a different syntax to the rest of the Elastic stack.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-filter-syntax/254793)._
