Skip to content

Commit

Permalink
[DOCS] Adds date math to KQL doc (#125880)
Browse files Browse the repository at this point in the history
* [DOCS] Adds date math to KQL doc

* [DOCS] Adds examples of date math expressions
  • Loading branch information
gchaps authored Feb 17, 2022
1 parent a29c81b commit d64fc1c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/concepts/kuery.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,20 @@ but in some cases you might need to search on dates. Include the date range in q
@timestamp < "2021"
-------------------

KQL supports date math expressions.

[source,yaml]
-------------------
@timestamp < now-1d
-------------------

[source,yaml]
-------------------
updated_at > 2022-02-17||+1M/d
-------------------

Check the
{ref}/common-options.html#date-math[date math documentation] for more examples.

[discrete]
=== Exist queries
Expand Down

0 comments on commit d64fc1c

Please sign in to comment.