eql-search-api.asciidoc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[eql-search-api]]
  4. === EQL search API
  5. ++++
  6. <titleabbrev>EQL search</titleabbrev>
  7. ++++
  8. Returns search results for an <<eql,Event Query Language (EQL)>> query.
  9. EQL assumes each document in a data stream or index corresponds to an
  10. event.
  11. ////
  12. [source,console]
  13. ----
  14. DELETE /_data_stream/*
  15. DELETE /_index_template/*
  16. ----
  17. // TEARDOWN
  18. ////
  19. [source,console]
  20. ----
  21. GET /my-data-stream/_eql/search
  22. {
  23. "query": """
  24. process where process.name == "regsvr32.exe"
  25. """
  26. }
  27. ----
  28. // TEST[setup:sec_logs]
  29. [[eql-search-api-request]]
  30. ==== {api-request-title}
  31. `GET /<target>/_eql/search`
  32. `POST /<target>/_eql/search`
  33. [[eql-search-api-prereqs]]
  34. ==== {api-prereq-title}
  35. * If the {es} {security-features} are enabled, you must have the `read`
  36. <<privileges-list-indices,index privilege>> for the target data stream, index,
  37. or index alias.
  38. * See <<eql-required-fields>>.
  39. [[eql-search-api-limitations]]
  40. ===== Limitations
  41. See <<eql-syntax-limitations,EQL limitations>>.
  42. [[eql-search-api-path-params]]
  43. ==== {api-path-parms-title}
  44. `<target>`::
  45. (Required, string)
  46. Comma-separated list of data streams, indices, or <<indices-aliases,index
  47. aliases>> used to limit the request. Accepts wildcard (`*`) expressions.
  48. +
  49. To search all data streams and indices in a cluster, use
  50. `_all` or `*`.
  51. [[eql-search-api-query-params]]
  52. ==== {api-query-parms-title}
  53. `allow_no_indices`::
  54. (Optional, Boolean)
  55. +
  56. NOTE: This parameter's behavior differs from the `allow_no_indices` parameter
  57. used in other <<multi-index,multi-target APIs>>.
  58. +
  59. If `false`, the request returns an error if any wildcard expression,
  60. <<indices-aliases,index alias>>, or `_all` value targets only missing or closed
  61. indices. This behavior applies even if the request targets other open indices.
  62. For example, a request targeting `foo*,bar*` returns an error if an index
  63. starts with `foo` but no index starts with `bar`.
  64. +
  65. If `true`, only requests that exclusively target missing or closed indices
  66. return an error. For example, a request targeting `foo*,bar*` does not return an
  67. error if an index starts with `foo` but no index starts with `bar`. However, a
  68. request that targets only `bar*` still returns an error.
  69. +
  70. Defaults to `true`.
  71. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
  72. +
  73. Defaults to `open`.
  74. `filter_path`::
  75. (Optional, string)
  76. Comma-separated list of filters for the API response. See
  77. <<common-options-response-filtering>>.
  78. `ignore_unavailable`::
  79. (Optional, Boolean) If `true`, missing or closed indices are not included in the
  80. response. Defaults to `true`.
  81. `keep_alive`::
  82. +
  83. --
  84. (Optional, <<time-units,time value>>)
  85. Period for which the search and its results are stored on the cluster. Defaults
  86. to `5d` (five days).
  87. When this period expires, the search and its results are deleted, even if the
  88. search is still ongoing.
  89. If the <<eql-search-api-keep-on-completion,`keep_on_completion`>> parameter is
  90. `false`, {es} only stores <<eql-search-async,async searches>> that do not
  91. complete within the period set by the
  92. <<eql-search-api-wait-for-completion-timeout,`wait_for_completion_timeout`>>
  93. parameter, regardless of this value.
  94. [IMPORTANT]
  95. ====
  96. You can also specify this value using the `keep_alive` request body parameter.
  97. If both parameters are specified, only the query parameter is used.
  98. ====
  99. --
  100. `keep_on_completion`::
  101. +
  102. --
  103. (Optional, Boolean)
  104. If `true`, the search and its results are stored on the cluster.
  105. If `false`, the search and its results are stored on the cluster only if the
  106. request does not complete during the period set by the
  107. <<eql-search-api-wait-for-completion-timeout,`wait_for_completion_timeout`>>
  108. parameter. Defaults to `false`.
  109. [IMPORTANT]
  110. ====
  111. You can also specify this value using the `keep_on_completion` request body
  112. parameter. If both parameters are specified, only the query parameter is used.
  113. ====
  114. --
  115. `wait_for_completion_timeout`::
  116. +
  117. --
  118. (Optional, <<time-units,time value>>)
  119. Timeout duration to wait for the request to finish. Defaults to no
  120. timeout, meaning the request waits for complete search results.
  121. If this parameter is specified and the request completes during this period,
  122. complete search results are returned.
  123. If the request does not complete during this period, the search becomes an
  124. <<eql-search-async,async search>>.
  125. [IMPORTANT]
  126. ====
  127. You can also specify this value using the `wait_for_completion_timeout` request
  128. body parameter. If both parameters are specified, only the query parameter is
  129. used.
  130. ====
  131. --
  132. [role="child_attributes"]
  133. [[eql-search-api-request-body]]
  134. ==== {api-request-body-title}
  135. `event_category_field`::
  136. (Required*, string)
  137. Field containing the event classification, such as `process`, `file`, or
  138. `network`.
  139. +
  140. Defaults to `event.category`, as defined in the {ecs-ref}/ecs-event.html[Elastic
  141. Common Schema (ECS)]. If a data stream or index does not contain the
  142. `event.category` field, this value is required.
  143. +
  144. The event category field must be mapped as a field type in the
  145. <<keyword,`keyword`>> family.
  146. `fetch_size`::
  147. (Optional, integer)
  148. Maximum number of events to search at a time for sequence queries. Defaults to
  149. `1000`.
  150. +
  151. This value must be greater than `2` but cannot exceed the value of the
  152. <<index-max-result-window,`index.max_result_window`>> setting, which defaults to
  153. `10000`.
  154. +
  155. Internally, a sequence query fetches and paginates sets of events to search for
  156. matches. This parameter controls the size of those sets. This parameter does not
  157. limit the total number of events searched or the number of matching events
  158. returned.
  159. +
  160. A greater `fetch_size` value often increases search speed but uses more memory.
  161. `fields`::
  162. (Optional, array of strings and objects)
  163. Array of wildcard (`*`) patterns. The response returns values for field names
  164. matching these patterns in the `fields` property of each hit.
  165. +
  166. You can specify items in the array as a string or object.
  167. +
  168. .Properties of `fields` objects
  169. [%collapsible%open]
  170. ====
  171. `field`::
  172. (Required, string)
  173. Wildcard pattern. The request returns values for field names matching this
  174. pattern.
  175. `format`::
  176. (Optional, string)
  177. Format in which the values are returned.
  178. +
  179. <<date,`date`>> and <<date_nanos, `date_nanos`>> fields accept a
  180. <<mapping-date-format,date format>>. <<spatial_datatypes, Spatial fields>>
  181. accept either `geojson` for http://www.geojson.org[GeoJSON] (the default) or
  182. `wkt` for {wikipedia}/Well-known_text_representation_of_geometry[Well Known
  183. Text].
  184. +
  185. For other field data types, this parameter is not supported.
  186. ====
  187. `filter`::
  188. (Optional, <<query-dsl,Query DSL object>>)
  189. Query, written in Query DSL, used to filter the events on which the EQL query
  190. runs.
  191. `keep_alive`::
  192. +
  193. --
  194. (Optional, <<time-units,time value>>)
  195. Period for which the search and its results are stored on the cluster. Defaults
  196. to `5d` (five days).
  197. When this period expires, the search and its results are deleted, even if the
  198. search is still ongoing.
  199. If the <<eql-search-api-keep-on-completion,`keep_on_completion`>> parameter is
  200. `false`, {es} only stores <<eql-search-async,async searches>> that do not
  201. complete within the period set by the
  202. <<eql-search-api-wait-for-completion-timeout,`wait_for_completion_timeout`>>
  203. parameter, regardless of this value.
  204. [IMPORTANT]
  205. ====
  206. You can also specify this value using the `keep_alive` query parameter.
  207. If both parameters are specified, only the query parameter is used.
  208. ====
  209. --
  210. [[eql-search-api-keep-on-completion]]
  211. `keep_on_completion`::
  212. +
  213. --
  214. (Optional, Boolean)
  215. If `true`, the search and its results are stored on the cluster.
  216. If `false`, the search and its results are stored on the cluster only if the
  217. request does not complete during the period set by the
  218. <<eql-search-api-wait-for-completion-timeout,`wait_for_completion_timeout`>>
  219. parameter. Defaults to `false`.
  220. [IMPORTANT]
  221. ====
  222. You can also specify this value using the `keep_on_completion` query parameter.
  223. If both parameters are specified, only the query parameter is used.
  224. ====
  225. --
  226. [[eql-search-api-request-query-param]]
  227. `query`::
  228. (Required, string)
  229. <<eql-syntax,EQL>> query you wish to run.
  230. `result_position`::
  231. (Optional, enum)
  232. Set of matching events or sequences to return.
  233. +
  234. .Valid values for `result_position`
  235. [%collapsible%open]
  236. ====
  237. `tail`::
  238. (Default)
  239. Return the most recent matches, similar to the {wikipedia}/Tail_(Unix)[Unix tail
  240. command].
  241. `head`::
  242. Return the earliest matches, similar to the {wikipedia}/Head_(Unix)[Unix head
  243. command].
  244. ====
  245. +
  246. NOTE: This parameter may change the set of returned hits. However, it does not
  247. change the sort order of hits in the response.
  248. include::{es-repo-dir}/search/search.asciidoc[tag=runtime-mappings-def]
  249. `size`::
  250. (Optional, integer or float)
  251. For <<eql-basic-syntax,basic queries>>, the maximum number of matching events to
  252. return.
  253. +
  254. For <<eql-sequences,sequence queries>>, the maximum number of matching sequences
  255. to return.
  256. +
  257. Defaults to `10`. This value must be greater than `0`.
  258. +
  259. NOTE: You cannot use <<eql-pipe-ref,pipes>>, such as `head` or `tail`, to exceed
  260. this value.
  261. [[eql-search-api-tiebreaker-field]]
  262. `tiebreaker_field`::
  263. (Optional, string)
  264. Field used to sort hits with the same
  265. <<eql-search-api-timestamp-field,timestamp>> in ascending order. See
  266. <<eql-search-specify-a-sort-tiebreaker>>.
  267. [[eql-search-api-timestamp-field]]
  268. `timestamp_field`::
  269. +
  270. --
  271. (Required*, string)
  272. Field containing event timestamp.
  273. Defaults to `@timestamp`, as defined in the
  274. {ecs-ref}/ecs-event.html[Elastic Common Schema (ECS)]. If a data stream or index
  275. does not contain the `@timestamp` field, this value is required.
  276. Events in the API response are sorted by this field's value, converted to
  277. milliseconds since the {wikipedia}/Unix_time[Unix epoch], in
  278. ascending order.
  279. The timestamp field should be mapped as a <<date,`date`>>. The
  280. <<date_nanos,`date_nanos`>> field type is not supported.
  281. --
  282. [[eql-search-api-wait-for-completion-timeout]]
  283. `wait_for_completion_timeout`::
  284. +
  285. --
  286. (Optional, <<time-units,time value>>)
  287. Timeout duration to wait for the request to finish. Defaults to no
  288. timeout, meaning the request waits for complete search results.
  289. If this parameter is specified and the request completes during this period,
  290. complete search results are returned.
  291. If the request does not complete during this period, the search becomes an
  292. <<eql-search-async,async search>>.
  293. [IMPORTANT]
  294. ====
  295. You can also specify this value using the `wait_for_completion_timeout` query
  296. parameter. If both parameters are specified, only the query parameter is used.
  297. ====
  298. --
  299. [role="child_attributes"]
  300. [[eql-search-api-response-body]]
  301. ==== {api-response-body-title}
  302. [[eql-search-api-response-body-search-id]]
  303. `id`::
  304. +
  305. --
  306. (string)
  307. Identifier for the search.
  308. This search ID is only provided if one of the following conditions is met:
  309. * A search request does not return complete results during the
  310. <<eql-search-api-wait-for-completion-timeout,`wait_for_completion_timeout`>>
  311. parameter's timeout period, becoming an <<eql-search-async,async search>>.
  312. * The search request's <<eql-search-api-keep-on-completion,`keep_on_completion`>>
  313. parameter is `true`.
  314. You can use this ID with the <<get-async-eql-search-api,get async EQL search
  315. API>> to get the current status and available results for the search or
  316. <<get-async-eql-status-api,get async EQL status API>> to get only
  317. the current status.
  318. --
  319. `is_partial`::
  320. (Boolean)
  321. If `true`, the response does not contain complete search results.
  322. `is_running`::
  323. +
  324. --
  325. (Boolean)
  326. If `true`, the search request is still executing.
  327. [IMPORTANT]
  328. ====
  329. If this parameter and the `is_partial` parameter are `true`, the search is an
  330. <<eql-search-async,ongoing async search>>. If the `keep_alive` period does not
  331. pass, the complete search results will be available when the search completes.
  332. If `is_partial` is `true` but `is_running` is `false`, the search returned
  333. partial results due to a failure. Only some shards returned results or the node
  334. coordinating the search failed.
  335. ====
  336. --
  337. `took`::
  338. +
  339. --
  340. (integer)
  341. Milliseconds it took {es} to execute the request.
  342. This value is calculated by measuring the time elapsed
  343. between receipt of a request on the coordinating node
  344. and the time at which the coordinating node is ready to send the response.
  345. Took time includes:
  346. * Communication time between the coordinating node and data nodes
  347. * Time the request spends in the `search` <<modules-threadpool,thread pool>>,
  348. queued for execution
  349. * Actual execution time
  350. Took time does *not* include:
  351. * Time needed to send the request to {es}
  352. * Time needed to serialize the JSON response
  353. * Time needed to send the response to a client
  354. --
  355. `timed_out`::
  356. (Boolean)
  357. If `true`, the request timed out before completion.
  358. `hits`::
  359. (object)
  360. Contains matching events and sequences. Also contains related metadata.
  361. +
  362. .Properties of `hits`
  363. [%collapsible%open]
  364. ====
  365. `total`::
  366. (object)
  367. Metadata about the number of matching events or sequences.
  368. +
  369. .Properties of `total`
  370. [%collapsible%open]
  371. =====
  372. `value`::
  373. (integer)
  374. For <<eql-basic-syntax,basic queries>>, the total number of matching events.
  375. +
  376. For <<eql-sequences,sequence queries>>, the total number of matching sequences.
  377. `relation`::
  378. +
  379. --
  380. (string)
  381. Indicates whether the number of events or sequences returned is accurate or a
  382. lower bound.
  383. Returned values are:
  384. `eq`::: Accurate
  385. `gte`::: Lower bound, including returned events or sequences
  386. --
  387. =====
  388. `sequences`::
  389. (array of objects)
  390. Contains event sequences matching the query. Each object represents a
  391. matching sequence. This parameter is only returned for EQL queries containing
  392. a <<eql-sequences,sequence>>.
  393. +
  394. .Properties of `sequences` objects
  395. [%collapsible%open]
  396. =====
  397. `join_keys`::
  398. (array of values)
  399. Shared field values used to constrain matches in the sequence. These are defined
  400. using the <<eql-sequences,`by` keyword>> in the EQL query syntax.
  401. `events`::
  402. (array of objects)
  403. Contains events matching the query. Each object represents a
  404. matching event.
  405. +
  406. .Properties of `events` objects
  407. [%collapsible%open]
  408. ======
  409. `_index`::
  410. (string)
  411. Name of the index containing the event.
  412. `_id`::
  413. (string)
  414. Unique identifier for the event.
  415. This ID is only unique within the index.
  416. `_source`::
  417. (object)
  418. Original JSON body passed for the event at index time.
  419. ======
  420. =====
  421. [[eql-search-api-response-events]]
  422. `events`::
  423. (array of objects)
  424. Contains events matching the query. Each object represents a
  425. matching event.
  426. +
  427. .Properties of `events` objects
  428. [%collapsible%open]
  429. =====
  430. `_index`::
  431. (string)
  432. Name of the index containing the event.
  433. `_id`::
  434. (string)
  435. (string)
  436. Unique identifier for the event.
  437. This ID is only unique within the index.
  438. `_source`::
  439. (object)
  440. Original JSON body passed for the event at index time.
  441. =====
  442. ====
  443. [[eql-search-api-example]]
  444. ==== {api-examples-title}
  445. [[eql-search-api-basic-query-ex]]
  446. ===== Basic query example
  447. The following EQL search request searches for events with an `event.category` of
  448. `process` that meet the following conditions:
  449. * A `process.name` of `cmd.exe`
  450. * An `process.pid` other than `2013`
  451. [source,console]
  452. ----
  453. GET /my-data-stream/_eql/search
  454. {
  455. "query": """
  456. process where (process.name == "cmd.exe" and process.pid != 2013)
  457. """
  458. }
  459. ----
  460. // TEST[setup:sec_logs]
  461. The API returns the following response. Matching events in the `hits.events`
  462. property are sorted by <<eql-search-api-timestamp-field,timestamp>>, converted
  463. to milliseconds since the {wikipedia}/Unix_time[Unix epoch],
  464. in ascending order.
  465. If two or more events share the same timestamp, the
  466. <<eql-search-api-tiebreaker-field,`tiebreaker_field`>> field is used to sort
  467. the events in ascending order.
  468. [source,console-result]
  469. ----
  470. {
  471. "is_partial": false,
  472. "is_running": false,
  473. "took": 6,
  474. "timed_out": false,
  475. "hits": {
  476. "total": {
  477. "value": 2,
  478. "relation": "eq"
  479. },
  480. "events": [
  481. {
  482. "_index": ".ds-my-data-stream-2099.12.07-000001",
  483. "_id": "babI3XMBI9IjHuIqU0S_",
  484. "_source": {
  485. "@timestamp": "2099-12-06T11:04:05.000Z",
  486. "event": {
  487. "category": "process",
  488. "id": "edwCRnyD",
  489. "sequence": 1
  490. },
  491. "process": {
  492. "pid": 2012,
  493. "name": "cmd.exe",
  494. "executable": "C:\\Windows\\System32\\cmd.exe"
  495. }
  496. }
  497. },
  498. {
  499. "_index": ".ds-my-data-stream-2099.12.07-000001",
  500. "_id": "b6bI3XMBI9IjHuIqU0S_",
  501. "_source": {
  502. "@timestamp": "2099-12-07T11:06:07.000Z",
  503. "event": {
  504. "category": "process",
  505. "id": "cMyt5SZ2",
  506. "sequence": 3
  507. },
  508. "process": {
  509. "pid": 2012,
  510. "name": "cmd.exe",
  511. "executable": "C:\\Windows\\System32\\cmd.exe"
  512. }
  513. }
  514. }
  515. ]
  516. }
  517. }
  518. ----
  519. // TESTRESPONSE[s/"took": 6/"took": $body.took/]
  520. // TESTRESPONSE[s/"_index": ".ds-my-data-stream-2099.12.07-000001"/"_index": $body.hits.events.0._index/]
  521. // TESTRESPONSE[s/"_id": "babI3XMBI9IjHuIqU0S_"/"_id": $body.hits.events.0._id/]
  522. // TESTRESPONSE[s/"_id": "b6bI3XMBI9IjHuIqU0S_"/"_id": $body.hits.events.1._id/]
  523. [[eql-search-api-sequence-ex]]
  524. ===== Sequence query example
  525. The following EQL search request matches a <<eql-sequences,sequence>> of events
  526. that:
  527. . Start with an event with:
  528. +
  529. --
  530. * An `event.category` of `file`
  531. * A `file.name` of `cmd.exe`
  532. * An `process.pid` other than `2013`
  533. --
  534. . Followed by an event with:
  535. +
  536. --
  537. * An `event.category` of `process`
  538. * A `process.executable` that contains the substring `regsvr32`
  539. --
  540. These events must also share the same `process.pid` value.
  541. [source,console]
  542. ----
  543. GET /my-data-stream/_eql/search
  544. {
  545. "query": """
  546. sequence by process.pid
  547. [ file where file.name == "cmd.exe" and process.pid != 2013 ]
  548. [ process where stringContains(process.executable, "regsvr32") ]
  549. """
  550. }
  551. ----
  552. // TEST[setup:sec_logs]
  553. The API returns the following response. Matching sequences are included in the
  554. `hits.sequences` property. The `hits.sequences.join_keys` property contains the
  555. shared `process.pid` value for each matching event.
  556. [source,console-result]
  557. ----
  558. {
  559. "is_partial": false,
  560. "is_running": false,
  561. "took": 6,
  562. "timed_out": false,
  563. "hits": {
  564. "total": {
  565. "value": 1,
  566. "relation": "eq"
  567. },
  568. "sequences": [
  569. {
  570. "join_keys": [
  571. 2012
  572. ],
  573. "events": [
  574. {
  575. "_index": ".ds-my-data-stream-2099.12.07-000001",
  576. "_id": "AtOJ4UjUBAAx3XR5kcCM",
  577. "_source": {
  578. "@timestamp": "2099-12-06T11:04:07.000Z",
  579. "event": {
  580. "category": "file",
  581. "id": "dGCHwoeS",
  582. "sequence": 2
  583. },
  584. "file": {
  585. "accessed": "2099-12-07T11:07:08.000Z",
  586. "name": "cmd.exe",
  587. "path": "C:\\Windows\\System32\\cmd.exe",
  588. "type": "file",
  589. "size": 16384
  590. },
  591. "process": {
  592. "pid": 2012,
  593. "name": "cmd.exe",
  594. "executable": "C:\\Windows\\System32\\cmd.exe"
  595. }
  596. }
  597. },
  598. {
  599. "_index": ".ds-my-data-stream-2099.12.07-000001",
  600. "_id": "OQmfCaduce8zoHT93o4H",
  601. "_source": {
  602. "@timestamp": "2099-12-07T11:07:09.000Z",
  603. "event": {
  604. "category": "process",
  605. "id": "aR3NWVOs",
  606. "sequence": 4
  607. },
  608. "process": {
  609. "pid": 2012,
  610. "name": "regsvr32.exe",
  611. "command_line": "regsvr32.exe /s /u /i:https://...RegSvr32.sct scrobj.dll",
  612. "executable": "C:\\Windows\\System32\\regsvr32.exe"
  613. }
  614. }
  615. }
  616. ]
  617. }
  618. ]
  619. }
  620. }
  621. ----
  622. // TESTRESPONSE[s/"took": 6/"took": $body.took/]
  623. // TESTRESPONSE[s/"_index": ".ds-my-data-stream-2099.12.07-000001"/"_index": $body.hits.sequences.0.events.0._index/]
  624. // TESTRESPONSE[s/"_id": "AtOJ4UjUBAAx3XR5kcCM"/"_id": $body.hits.sequences.0.events.0._id/]
  625. // TESTRESPONSE[s/"_id": "OQmfCaduce8zoHT93o4H"/"_id": $body.hits.sequences.0.events.1._id/]