-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EQL _async_search status API #66955
Comments
Pinging @elastic/es-search (Team:Search) |
Pinging @elastic/es-ql (Team:QL) |
There are several ways we can organize an API for the status of EQL search:
GET /_async_search/status/<ID>
GET /_eql/search/status/<ID> @lizozom @jimczi What do you think of each option? @lizozom Is it important for you to have a single API to check the status regardless whether it is EQL search or not? Or is it important for you to differentiate between EQL searches and other searches? |
@mayya-sharipova I have a preference for a single API. |
I am a bit on the fence because that would mean that we need to differentiate EQL from async_search simply looking at the ID. I can see why it would be useful to have a single API but I am afraid that it complicates things going forward since async searches and EQL behave differently. @lizozom is it really challenging to make the distinction in Kibana ? I guess it would be easier to access this infos in the Kibana Search Sessions than tweaking the ID when we create it. |
@mayya-sharipova after talking to @jimczi, it's fine to have two separate APIs with identical req\res formats. |
I've just learned that eql search response doesn't have information about shards and status. So eql status response will have a different format from async search status responses, like the following format: {
"id" : <id>,
"is_running" : true,
"is_partial" : true,
"start_time_in_millis" : 1583945890986,
"expiration_time_in_millis" : 1584377890986,
"timed_out" : false
} I hope you are fine with this, @lizozom |
@mayya-sharipova this is ok, but not optimal. |
Introduce eql search status API, that reports the status of eql stored or async search. GET _eql/search/status/<id> The API is restricted to the monitoring_user role. For a running eql search, a response has the following format: { "id" : <id>, "is_running" : true, "is_partial" : true, "start_time_in_millis" : 1611690235000, "expiration_time_in_millis" : 1611690295000 } For a completed eql search, a response has the following format: { "id" : <id>, "is_running" : false, "is_partial" : false, "expiration_time_in_millis" : 1611690295000, "completion_status" : 200 } Closes elastic#66955
Introduce eql search status API, that reports the status of eql stored or async search. GET _eql/search/status/<id> The API is restricted to the monitoring_user role. For a running eql search, a response has the following format: { "id" : <id>, "is_running" : true, "is_partial" : true, "start_time_in_millis" : 1611690235000, "expiration_time_in_millis" : 1611690295000 } For a completed eql search, a response has the following format: { "id" : <id>, "is_running" : false, "is_partial" : false, "expiration_time_in_millis" : 1611690295000, "completion_status" : 200 } Closes #66955
Introduce eql search status API, that reports the status of eql stored or async search. GET _eql/search/status/<id> The API is restricted to the monitoring_user role. For a running eql search, a response has the following format: { "id" : <id>, "is_running" : true, "is_partial" : true, "start_time_in_millis" : 1611690235000, "expiration_time_in_millis" : 1611690295000 } For a completed eql search, a response has the following format: { "id" : <id>, "is_running" : false, "is_partial" : false, "expiration_time_in_millis" : 1611690295000, "completion_status" : 200 } Backport for #68065 Closes #66955
We need an API similar to the one implemented for the KQL async search #57537 to check the status of running EQL requests.
The request and response formats should be identical.
The text was updated successfully, but these errors were encountered: