Returns a limited number of events, starting with the oldest. This function is equivalent to the command-line head tool.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
limit | number | false | 200 | The maximum number of events to return. [a] |
Minimum | 0 | |||
Maximum | 10000 | |||
head()
Examples
Select the 10 oldest with
loglevel=ERROR
logscaleloglevel=ERROR | head(10)
Select the 100 oldest events and group them by
loglevel
logscalehead(limit=100) | groupby(loglevel)