Search Commands
chart
chart
Create aggregated visualizations. Alias for stats optimized for charting.
Description
The chart command is functionally identical to stats but signals that results are intended for visualization. Use chart when creating dashboard panels or visual analytics.
Syntax
... | chart <function>([field]) [as <alias>] [by <field>]Arguments
Same as stats command.
Examples
Count by category
* | chart count() by severityMultiple metrics
* | chart count() as events, sum(bytes) as total_bytes by src_ipAverage response time
* | chart avg(response_time) by endpointDistribution analysis
* | chart count() by status, methodUsage Notes
Identical to stats: Functionally the same as stats. Use chart for clarity when creating visualizations.
Dashboard hint: Signals to UI that results should be visualized.
All stats features: Supports all aggregation functions and grouping options.