Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Shows the most common values.

top x:field

Shows the most common values for a given field. For each value, a new event containing its count will be produced. In general, top x is equivalent to:

summarize x, count=count()
sort -count

This operator is the dual to rare.

The field to find the most common values for.

from {x: "B"}, {x: "A"}, {x: "A"}, {x: "B"}, {x: "A"}, {x: "D"}, {x: "C"}, {x: "C"}
top x
{x: "A", count: 3}
{x: "B", count: 2}
{x: "C", count: 2}
{x: "D", count: 1}
top id.orig_h
head 5

Last updated: