mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
47 lines
895 B
Text
47 lines
895 B
Text
// tag::console[]
|
|
|
|
To get started with {esql} in Console, open the main menu and select
|
|
*Dev Tools*.
|
|
|
|
The general structure of an <<esql-query-api,{esql} query API>> request is:
|
|
|
|
[source,txt]
|
|
----
|
|
POST /_query?format=txt
|
|
{
|
|
"query": """
|
|
|
|
"""
|
|
}
|
|
----
|
|
|
|
Enter the actual {esql} query between the two sets of triple quotes. For
|
|
example:
|
|
|
|
[source,txt]
|
|
----
|
|
POST /_query?format=txt
|
|
{
|
|
"query": """
|
|
FROM sample_data
|
|
"""
|
|
}
|
|
----
|
|
// end::console[]
|
|
|
|
|
|
// tag::discover[]
|
|
|
|
include::../../esql/esql-kibana.asciidoc[tag=esql-mode]
|
|
|
|
Adjust the time filter so it includes the timestamps in the sample data (October
|
|
23rd, 2023).
|
|
|
|
After switching to {esql} mode, the query bar shows a sample query. You can
|
|
replace this query with the queries in this getting started guide.
|
|
|
|
include::../../esql/esql-kibana.asciidoc[tag=autocomplete]
|
|
|
|
include::../../esql/esql-kibana.asciidoc[tag=compact]
|
|
|
|
// end::discover[]
|