rare
Shows the least common values.
rare x:field
Description
Section titled “Description”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
x: field
Section titled “x: field”The name of the field to find the least common values for.
Examples
Section titled “Examples”Find the least common values
Section titled “Find the least common values”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_hhead 5