Skip to main content
Version: v4.22

tail

Limits the input to the last n events.

tail [n:int]

Description

Forwards the last n events and discards the rest.

tail n is a shorthand notation for slice begin=-n.

n: int (optional)

The number of events to keep.

Defaults to 10.

Examples

Get the last ten results:

export
tail

Get the last five results:

export
tail 5