|
@@ -17,21 +17,21 @@ dev::[]
|
|
|
[[eql-pipe-head]]
|
|
|
=== `head`
|
|
|
|
|
|
-Returns up to a specified number of events, starting with the earliest matching
|
|
|
-events. Works similarly to the
|
|
|
+Returns up to a specified number of events or sequences, starting with the
|
|
|
+earliest matches. Works similarly to the
|
|
|
https://en.wikipedia.org/wiki/Head_(Unix)[Unix head command].
|
|
|
|
|
|
[%collapsible]
|
|
|
====
|
|
|
*Example*
|
|
|
|
|
|
-The following EQL query returns up to fifty of the earliest powershell
|
|
|
+The following EQL query returns up to three of the earliest powershell
|
|
|
commands.
|
|
|
|
|
|
[source,eql]
|
|
|
----
|
|
|
process where process.name == "powershell.exe"
|
|
|
-| head 50
|
|
|
+| head 3
|
|
|
----
|
|
|
|
|
|
*Syntax*
|
|
@@ -44,28 +44,28 @@ head <max>
|
|
|
|
|
|
`<max>`::
|
|
|
(Required, integer)
|
|
|
-Maximum number of matching events to return.
|
|
|
+Maximum number of matching events or sequences to return.
|
|
|
====
|
|
|
|
|
|
[discrete]
|
|
|
[[eql-pipe-tail]]
|
|
|
=== `tail`
|
|
|
|
|
|
-Returns up to a specified number of events, starting with the most recent
|
|
|
-matching events. Works similarly to the
|
|
|
+Returns up to a specified number of events or sequences, starting with the most
|
|
|
+recent matches. Works similarly to the
|
|
|
https://en.wikipedia.org/wiki/Tail_(Unix)[Unix tail command].
|
|
|
|
|
|
[%collapsible]
|
|
|
====
|
|
|
*Example*
|
|
|
|
|
|
-The following EQL query returns up to thirty of the most recent `svchost.exe`
|
|
|
+The following EQL query returns up to five of the most recent `svchost.exe`
|
|
|
processes.
|
|
|
|
|
|
[source,eql]
|
|
|
----
|
|
|
process where process.name == "svchost.exe"
|
|
|
-| tail 30
|
|
|
+| tail 5
|
|
|
----
|
|
|
|
|
|
*Syntax*
|
|
@@ -78,5 +78,5 @@ tail <max>
|
|
|
|
|
|
`<max>`::
|
|
|
(Required, integer)
|
|
|
-Maximum number of matching events to return.
|
|
|
-====
|
|
|
+Maximum number of matching events or sequences to return.
|
|
|
+====
|