Skip to main content
Version: v4.22

head

Limits the input to the first n events.

head [n:int]

Description

Forwards the first n events and discards the rest.

head n is a shorthand notation for slice end=n.

n: int (optional)

The number of events to keep.

Defaults to 10.

Examples

Get the first ten events:

head

Get the first five events:

head 5