Skip to content

Commit

Permalink
Add timestamp range example to kql docs (#87138) (#87324)
Browse files Browse the repository at this point in the history
A few folks have asked me if it is possible to do timestamp ranges by using "now" in kql. This was missing from an example so I have added it to the docs.

(cherry picked from commit 48df620)

Co-authored-by: Alex Close <alex.close@elastic.co>
  • Loading branch information
gchaps and Alex Close authored Jan 5, 2021
1 parent 6dfce9f commit 373ccbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/discover/kuery.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ tags:(success and info and security)
[discrete]
=== Range queries

KQL supports `>`, `>=`, `<`, and `<=`. For example:
KQL supports `>`, `>=`, `<`, and `<=` on numeric and date types. For example:

[source,yaml]
-------------------
account_number >= 100 and items_sold <= 200
account_number >= 100 and items_sold <= 200 and @timestamp >= now-5m
-------------------

[discrete]
Expand Down

0 comments on commit 373ccbd

Please sign in to comment.