Skip to main content

Column Charts

Column charts are useful for visually comparing the number of events that have occurred, such as which type of error occurs most often in your system. To create a Column chart, use a search query that provides at least a few data points in the Aggregates tab.

For example, you'd use the following query to create a simple column chart:

(error OR fail*) AND exception | count by | sort by _count

This query produces results such as:
categorical

Create a Column chart​

To add a panel with a column chart:

  1. Create or open a dashboard and click Add Panel > Time Series or Add Panel > Categorical.
    time series or categorical
  2. Provide a metric or log query and press Enter for it to run.
  3. After the query runs, change the chart type to Column.
    new column chart
  4. Modify the chart as desired.
  5. Click the Add to Dashboard button on the top right of the window to add the panel to your dashboard.
    Add to Dashboard button

Create a stacked column chart​

To create a stacked column chart, use a query that returns multiple series, counts by at least two fields, and ends with a transpose operation. For example, this query from the Sumo Logic App for Apache creates a stacked column chart of visits by country over time:

=Apache/Access
| parse regex "(?<client_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"
| lookup latitude, longitude, country_code, country_name, region, city, postal_code from geo://location on ip = client_ip
| where !isNull(country_name) AND country_name !=""
| timeslice 5m
| count by _timeslice, country_name
| transpose row _timeslice column country_name as *

After you add your query to the panel builder, press Enter to run it. In the Display options pane, select Stacked as the display type.
stacked column chart and setting

Legal
Privacy Statement
Terms of Use
CA Privacy Notice

© 2010 – 2026 Sumo Logic, Inc.