mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[DOCS] Adds date math to KQL doc (#125880)
* [DOCS] Adds date math to KQL doc * [DOCS] Adds examples of date math expressions
This commit is contained in:
parent
a29c81b7db
commit
d64fc1ce00
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue