Skip to main content
Sumo Logic

Column Charts

Column charts are useful for visually comparing the number of events that have occurred, such as the type of error that occurs the most 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 could use the following query to create a simple Column chart:

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

which would produce results such as:

To create a Column Chart:

  1. Run a query.
  2. In the Aggregates tab, choose the Column Chart icon to display the search results.

The data in the Aggregates tab is represented as a column chart.

For details on customizing the way your chart is displayed, see Edit Data Panels on the Dashboards Page.

Creating Stacked Column Charts

To create a stacked column chart, use a query that uses a multiple series that counts by at least two things, for example, this query from the Sumo Logic App for Apache creates a stacked column chart for visits by country over time:

_sourceCategory=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, area_code, metro_code from geo://default 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 *

To create a Stacked Column Chart:

  1. Run a query, such as the previous example.
  2. In the Aggregates tab, choose the Column Chart icon to display the search results.
  3. In the Settings menu, select Change Properties.
  4. Under Stacking, select Normal
  5. Click Save.

The data in the chart is displayed in stacked columns.