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

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