This documentation applies to the following versions of Splunk: 4.0 , 4.0.1 , 4.0.2 , 4.0.3 , 4.0.4 , 4.0.5 , 4.0.6 , 4.0.7 , 4.0.8 , 4.0.9 , 4.0.10
Returns the first n number of specified results.
head [<N> | <eval-expression>] [limit=<int>] [null=<bool>] [keeplast=<bool>]
Returns the first n results, or 10 if no integer is specified. New for 4.0, can provide a boolean eval expression, in which case we return events until that expression evaluates to false.
Example 1: Return the first 20 results.
Example 2: Return events until the time span of the data is >= 100 seconds