From d872eaa0db04f894efb0e8850961ab213107357a Mon Sep 17 00:00:00 2001 From: Alexander Spies Date: Tue, 16 Apr 2024 17:41:22 +0200 Subject: [PATCH] Document version parameter --- docs/track.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/track.rst b/docs/track.rst index beb13ebf1..cab0d59df 100644 --- a/docs/track.rst +++ b/docs/track.rst @@ -3138,12 +3138,13 @@ The operation returns no meta-data. esql ~~~~~~~~~~~~~ -With the operation type ``esql`` you can execute `ES|QL query `_. +With the operation type ``esql`` you can execute an `ES|QL query `_. Properties """""""""" -* ``query`` (mandatory): An ES|QL query starts with a source command followed processing commands. +* ``query`` (mandatory): An ES|QL query which starts with a source command followed by processing commands. +* ``version`` (optional): The version of the ES|QL query language. Defaults to the first released version, ``2024.04.01``. See the docs for `available versions `_. * ``filter`` (optional): A query filter defined in `Elasticsearch query DSL `_. * ``body`` (optional): The query body. @@ -3153,6 +3154,7 @@ Example:: "name": "default", "operation-type": "esql", "query": "FROM logs-* | STATS count=count(*) BY agent.hostname | SORT count DESC | LIMIT 20", + "version": "2024.04.01", "filter": { "range": { "timestamp": {