# Document level security - timestamp range issue

**URL:** <https://forum.opensearch.org/t/document-level-security-timestamp-range-issue/2633>\
**Category:** Security\
**Created:** [April 22, 2020, 3:57am UTC](https://forum.opensearch.org/t/document-level-security-timestamp-range-issue/2633 "2020-04-22T03:57:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodbyepc](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@goodbyepc](https://forum.opensearch.org/u/goodbyepc)\
**Post date:** [April 22, 2020, 3:57am UTC](https://forum.opensearch.org/t/document-level-security-timestamp-range-issue/2633/1 "2020-04-22T03:57:06Z")

</div>

If you set the @timestamp field to the document level security setting, an error occurs.  
Is there a problem with the dsl query?

```auto
{
   "range": {
    "@timestamp": {
      "gte": "now-1d/d"
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [February 7, 2023, 1:05am UTC](https://forum.opensearch.org/t/document-level-security-timestamp-range-issue/2633/2 "2023-02-07T01:05:30Z")

</div>

Closed on February 7, 2023, 1:05am UTC


