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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. See <<eql-required-fields>>.
  22. [[get-async-eql-search-api-limitations]]
  23. ===== Limitations
  24. See <<eql-syntax-limitations,EQL limitations>>.
  25. [[get-async-eql-search-api-path-params]]
  26. ==== {api-path-parms-title}
  27. `<search_id>`::
  28. (Required, string)
  29. Identifier for the search.
  30. +
  31. A search ID is provided in the <<eql-search-api,EQL search API>>'s response for
  32. an <<eql-search-async,async search>>. A search ID is also provided if the
  33. request's <<eql-search-api-keep-on-completion,`keep_on_completion`>> parameter
  34. is `true`.
  35. [[get-async-eql-search-api-query-params]]
  36. ==== {api-query-parms-title}
  37. `keep_alive`::
  38. (Optional, <<time-units,time value>>)
  39. Period for which the search and its results are stored on the cluster. Defaults
  40. to the `keep_alive` value set by the search's <<eql-search-api,EQL search
  41. API>> request.
  42. +
  43. If specified, this parameter sets a new `keep_alive` period for the search,
  44. starting when the get async EQL search API request executes. This new period
  45. overwrites the one specified in the EQL search API request.
  46. +
  47. When this period expires, the search and its results are deleted, even if the
  48. search is ongoing.
  49. `wait_for_completion_timeout`::
  50. (Optional, <<time-units,time value>>)
  51. Timeout duration to wait for the request to finish. Defaults to no timeout,
  52. meaning the request waits for complete search results.
  53. +
  54. If this parameter is specified and the request completes during this period,
  55. complete search results are returned.
  56. +
  57. If the request does not complete during this period, the response returns an
  58. `is_partial` value of `true` and no search results.
  59. [role="child_attributes"]
  60. [[get-async-eql-search-api-response-body]]
  61. ==== {api-response-body-title}
  62. The async EQL search API returns the same response body as the EQL search API.
  63. See the EQL search API's <<eql-search-api-response-body,response body
  64. parameters>>.