eql-search-api.asciidoc 20 KB

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