eql-search-api.asciidoc 20 KB

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