# Document Level Security & Combining queries together

**URL:** <https://discuss.elastic.co/t/document-level-security-combining-queries-together/136143>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 9:18pm UTC](https://discuss.elastic.co/t/document-level-security-combining-queries-together/136143 "2018-06-15T21:18:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [June 15, 2018, 9:18pm UTC](https://discuss.elastic.co/t/document-level-security-combining-queries-together/136143/1 "2018-06-15T21:18:28Z")

</div>

Hello,

I'm trying to use [Combining queries together](https://www.elastic.co/guide/en/elasticsearch/guide/current/combining-queries-together.html#combining-queries-together) ([Bool Query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html#query-dsl-bool-query) and [Range Query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#query-dsl-range-query)) with [Setting Up Field and Document Level Security](https://www.elastic.co/guide/en/x-pack/6.2/field-and-document-access-control.html#document-level-security) and running into issue(s):

I get Kibana error:

> Discover: could not read the current timestamp

and via `More Info`:

> Error: Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"parse\_exception","reason":"could not read the current timestamp"},

I've tried to use same combined bool & range query through `Discover` and everything works as expected, no errors.

Please advise.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [June 17, 2018, 6:45am UTC](https://discuss.elastic.co/t/document-level-security-combining-queries-together/136143/2 "2018-06-17T06:45:07Z")

</div>

Hi

This sounds like a formatting error but it would be really hard for anyone to assist if you don't show us the query you're trying in DLS

---

<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 15, 2018, 6:55am UTC](https://discuss.elastic.co/t/document-level-security-combining-queries-together/136143/3 "2018-07-15T06:55:46Z")

</div>

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