Menu
Run an ES|QL query
Run an ES|QL query
POST
/_queryUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Run an ES|QL query action (under esql).
- Fill in the fields below, then reference the result from later steps as
{{runAnEsQlQuery.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"query": "string",
"columnar": false,
"filter": null,
"time_zone": "string",
"locale": "string",
"params": null,
"profile": false,
"tables": {},
"include_ccs_metadata": false,
"include_execution_metadata": false
}
Response
Returns 200 with an object. Read it in later steps with {{runAnEsQlQuery.response.data.<field>}}.
{
"columns": [
{
"name": "string",
"type": "string"
}
],
"values": [
[
null
]
],
"took": null,
"is_partial": false,
"all_columns": [
{
"name": "string",
"type": "string"
}
],
"_clusters": null,
"profile": {}
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?