Skip to main content
Version: v4.23

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 10 results

export
tail

Get the last 5 results

export
tail 5