Skip to main content

hist

Class: sugar · Streaming: accumulating

Histogram rows with lo, hi, count, and chart columns.

Signature​

| hist <field> [bins=<n>]

Positional Arguments​

NameTypeRequiredDescription
fieldfieldYes-

Options​

NameTypeDefaultDescription
binsint20-

Desugars To​

stats histogram(<field>, <bins>) as _h | explode _h as bin | extend lo = bin.lo, hi = bin.hi, count = bin.count | eventstats max(count) as _m | extend chart = bar(count, 0, _m, 40) | drop _h, _m, bin | sort lo

Examples​

hist duration_ms bins=20

Generated from the LynxFlow registry. See RFC-002 for the full language specification.