# Elasticsearch DSL for all null values between 2 timestamps

**URL:** <https://discuss.elastic.co/t/elasticsearch-dsl-for-all-null-values-between-2-timestamps/62519>\
**Category:** Elasticsearch\
**Created:** [October 7, 2016, 5:43pm UTC](https://discuss.elastic.co/t/elasticsearch-dsl-for-all-null-values-between-2-timestamps/62519 "2016-10-07T17:43:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradfordli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradfordli/32/44786_2.png) [@bradfordli](https://discuss.elastic.co/u/bradfordli)\
**Post date:** [October 7, 2016, 5:43pm UTC](https://discuss.elastic.co/t/elasticsearch-dsl-for-all-null-values-between-2-timestamps/62519/1 "2016-10-07T17:43:26Z")

</div>

I have this structure JSON in elasticsearch. I am having trouble creating a `DSL` to search for all null values of `awsKafkaTimestamp` that are in between a `post.timestamp` range of A and B?

```
{
  "tracer": {
    "post": {"timestamp": 123123},
    "awsKafkaTimestamp": null,
    "qdcKafkaTimestamp": null
  }
}
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 8, 2016, 9:24am UTC](https://discuss.elastic.co/t/elasticsearch-dsl-for-all-null-values-between-2-timestamps/62519/2 "2016-10-08T09:24:59Z")

</div>

Have a look at [https://www.elastic.co/guide/en/elasticsearch/guide/current/\_dealing\_with\_null\_values.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/_dealing_with_null_values.html)

---

<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:** [July 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/elasticsearch-dsl-for-all-null-values-between-2-timestamps/62519/3 "2017-07-05T22:13:54Z")

</div>


