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. The maximum allowed is 10000.

Examples

  • Select the 10 oldest with loglevel=ERROR

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

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