Get async EQL status API
Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. This is a more lightweight API than get async EQL search API as it doesn’t return search results, and reports only the status.
If the Elasticsearch security features are enabled, the access to the get async eql status API is restricted to the monitoring_user role.
GET /_eql/search/status/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=
Request
GET /_eql/search/status/<search_id>
Path parameters
-
<search_id> -
(Required, string) Identifier for the search.
A search ID is provided in the EQL search API's response for an async search. A search ID is also provided if the request’s
keep_on_completionparameter istrue.
Response body
-
id - (string) Identifier for the search.
-
is_running - (boolean) If
true, the search request is still executing. Iffalse, the search is completed. -
is_partial - (boolean) If
true, the response does not contain complete search results. This could be because either the search is still running (is_runningstatus isfalse), or because it is already completed (is_runningstatus istrue) and results are partial due to failures or timeouts. -
start_time_in_millis - (Long) For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch.
-
expiration_time_in_millis - (long) Shows a timestamp when the eql search will be expired, in milliseconds since the Unix epoch. When this time is reached, the search and its results are deleted, even if the search is still ongoing.
-
completion_status - (Integer) For a completed search shows the http status code of the completed search.
Examples
GET /_eql/search/status/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?keep_alive=5d
If the search is still running, the status response has the following form:
{
"id" : "FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=",
"is_running" : true,
"is_partial" : true,
"start_time_in_millis" : 1611690235000,
"expiration_time_in_millis" : 1611690295000
} If the search is completed the status response doesn’t have start_time_in_millis, but has an additional completion_status field that shows the status code of the completed eql search:
{
"id" : "FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=",
"is_running" : false,
"is_partial" : false,
"expiration_time_in_millis" : 1611690295000,
"completion_status" : 200
} | Indicates that the eql search was successfully completed |
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/get-async-eql-status-api.html