eql-search-api.asciidoc 20 KB

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