Pie Charts
Pie charts are useful for visually comparing the percentage of events that have occurred, such as which type of error occurs most often in your system. A pie chart compares different values of the same field. To compare values of different fields, consider using a histogram.
To create a pie chart, use an aggregate query that provides at least a few results in the Aggregates tab.
For example, you'd use the following simple query to get results from your logs:
(error OR fail*) AND exception | count by | sort by _count
This query produces results such as:
Create a Pie chart
- Create or open a dashboard and click Add Panel > Categorical.

- Provide a Log or Metric query and press Enter for it to run.
- After the query runs, change the chart type to Pie.

- Modify the chart as desired.
- Click the Add to Dashboard button on the top right of the window to add the panel to your dashboard.
