12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // 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 kibana_sample_data_logs
- """
- }
- ----
- Inside quotes, Console suggests possible commands and functions to autocomplete your query:
- image::images/esql/console-esql-autocomplete.png[align="center"]
- // 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[]
|