Synopsis
DisplaysUsed to display the first specified number of
first search query results. This complex search query returns events, as opposed to a summary tableevents resulting from a Simple Search, or the first specified number of summary table entries resulting from a Complex Search.
Syntax
first [number_of_results]
Required Arguments
number_of_results
Syntax: <numeric>
Description: The number of first search results to display
Optional Arguments
None
Description
Returns the specifiedWhen used immediately following a Simple Search query, returns the specified number of first events resulting from the search. When used immediately following a Complex Search query, returns the specified number of first entries from the summary table resulting from the search
query results.
Examples
Example
1:
* in log.access | first
32
Returns the first
11 events32 events from access log.
Example 2:
http in log.iis log| max time-taken | group by c-ip | first 21
Returns the max time-taken value from events in log.iis log having http in their column values, for the first 21 c-ip values only.