Skip to main content
Sumo Logic

Bar Charts

Bar 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 Bar 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 Bar chart:

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

which would produce results such as:

AggResult.png

Create a bar chart

To add a panel with a bar chart:

  1. Create or open a Dashboard (New) and click on Add Panel > Time Series or Add Panel > Categorical.
    time series or categorical.png
  2. Provide a Metric or Log query and press Enter for it to run.
  3. Once the query runs you’ll need to flip the chart type to Bar.
    Dashboard New Bar Chart.png
  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.png