Skip to content

rare

Shows the least common values.

rare x:field

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

summarize x, count=count()
sort count

The name of the field to find the least common values for.

from {x: "B"}, {x: "A"}, {x: "A"}, {x: "B"}, {x: "A"}, {x: "D"}, {x: "C"}, {x: "C"}
rare x
{x: "D", count: 1}
{x: "C", count: 2}
{x: "B", count: 2}
{x: "A", count: 3}

Show the five least common values for id.orig_h

Section titled “Show the five least common values for id.orig_h”
rare id.orig_h
head 5

summarize, sort, top