Returns a limited number of events, starting with the oldest. This function is equivalent to the command-line head tool.

ParameterTypeRequiredDefaultDescription
limitnumberfalse200The maximum number of events to return. [a]
  Minimum0 
  Maximum10000 

[a] If an argument name is not given, limit is the default argument.

head() Examples

  • Select the 10 oldest with loglevel=ERROR

    logscale
    loglevel=ERROR
    | head(10)
  • Select the 100 oldest events and group them by loglevel

    logscale
    head(limit=100)
    | groupby(loglevel)