get-async-eql-search-api.asciidoc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [role="xpack"]
  2. [[get-async-eql-search-api]]
  3. === Get async EQL search API
  4. ++++
  5. <titleabbrev>Get async EQL search</titleabbrev>
  6. ++++
  7. Returns the current status and available results for an <<eql-search-async,async
  8. EQL search>> or a <<eql-search-store-sync-eql-search,stored synchronous EQL
  9. search>>.
  10. [source,console]
  11. ----
  12. GET /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=
  13. ----
  14. // TEST[skip: no access to search ID]
  15. [[get-async-eql-search-api-request]]
  16. ==== {api-request-title}
  17. `GET /_eql/search/<search_id>`
  18. [[get-async-eql-search-api-prereqs]]
  19. ==== {api-prereq-title}
  20. * If the {es} {security-features} are enabled, only the user who first submitted
  21. the EQL search can retrieve the search using this API.
  22. * See <<eql-required-fields>>.
  23. [[get-async-eql-search-api-limitations]]
  24. ===== Limitations
  25. See <<eql-syntax-limitations,EQL limitations>>.
  26. [[get-async-eql-search-api-path-params]]
  27. ==== {api-path-parms-title}
  28. `<search_id>`::
  29. (Required, string)
  30. Identifier for the search.
  31. +
  32. A search ID is provided in the <<eql-search-api,EQL search API>>'s response for
  33. an <<eql-search-async,async search>>. A search ID is also provided if the
  34. request's <<eql-search-api-keep-on-completion,`keep_on_completion`>> parameter
  35. is `true`.
  36. [[get-async-eql-search-api-query-params]]
  37. ==== {api-query-parms-title}
  38. `keep_alive`::
  39. (Optional, <<time-units,time value>>)
  40. Period for which the search and its results are stored on the cluster. Defaults
  41. to the `keep_alive` value set by the search's <<eql-search-api,EQL search
  42. API>> request.
  43. +
  44. If specified, this parameter sets a new `keep_alive` period for the search,
  45. starting when the get async EQL search API request executes. This new period
  46. overwrites the one specified in the EQL search API request.
  47. +
  48. When this period expires, the search and its results are deleted, even if the
  49. search is ongoing.
  50. `wait_for_completion_timeout`::
  51. (Optional, <<time-units,time value>>)
  52. Timeout duration to wait for the request to finish. Defaults to no timeout,
  53. meaning the request waits for complete search results.
  54. +
  55. If this parameter is specified and the request completes during this period,
  56. complete search results are returned.
  57. +
  58. If the request does not complete during this period, the response returns an
  59. `is_partial` value of `true` and no search results.
  60. [role="child_attributes"]
  61. [[get-async-eql-search-api-response-body]]
  62. ==== {api-response-body-title}
  63. The async EQL search API returns the same response body as the EQL search API.
  64. See the EQL search API's <<eql-search-api-response-body,response body
  65. parameters>>.