Skip to content

Commit 401605a

Browse files
authored
[DOCS] EQL: Change result_position default to tail (elastic#66550) (elastic#66594)
1 parent 2b8390b commit 401605a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/reference/eql/eql-search-api.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ Set of matching events or sequences to return.
235235
.Valid values for `result_position`
236236
[%collapsible%open]
237237
====
238-
`head`::
238+
`tail`::
239239
(Default)
240-
Return the earliest matches, similar to the {wikipedia}/Head_(Unix)[Unix head
240+
Return the most recent matches, similar to the {wikipedia}/Tail_(Unix)[Unix tail
241241
command].
242242
243-
`tail`::
244-
Return the most recent matches, similar to the {wikipedia}/Tail_(Unix)[Unix tail
243+
`head`::
244+
Return the earliest matches, similar to the {wikipedia}/Head_(Unix)[Unix head
245245
command].
246246
====
247247
+

docs/reference/eql/eql.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ GET /my-index-000001/_eql/search
5959
----
6060
// TEST[setup:sec_logs]
6161

62-
By default, basic EQL queries return the top 10 matching events in the
62+
By default, basic EQL queries return the 10 most recent matching events in the
6363
`hits.events` property. These hits are sorted by timestamp, converted to
6464
milliseconds since the {wikipedia}/Unix_time[Unix epoch], in ascending order.
6565

@@ -155,7 +155,8 @@ GET /my-index-000001/_eql/search
155155
----
156156
// TEST[setup:sec_logs]
157157

158-
Matching sequences are returned in the `hits.sequences` property.
158+
The response's `hits.sequences` property contains the 10 most recent matching
159+
sequences.
159160

160161
[source,console-result]
161162
----

0 commit comments

Comments
 (0)