mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add timestamp range example to kql docs (#87138)
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 48df620b1d30a9dcd08423204b66b453e50e587b)
This commit is contained in:
parent
0af81310b6
commit
f22e06e618
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue