Single Value Charts
Single value charts display the result of a log or metric query as one value, for at-a-glance analysis. This page shows you how to create and customize single value charts.
A single value chart displays one record from a search so the value stands out at a glance. If the query returns more than one value in the Aggregates tab, only the first value is displayed in the single value chart.
A single value chart is useful for summarizing a time series as one number. For example, you might want a dashboard panel that shows the number of errors generated by your site over the last 24 hours.
Create a Single value chart
To add a panel with a single value chart:
-
Create or open a dashboard and click Add Panel > Single Value.

-
Provide a Metrics or Logs query and press Enter for it to run.
Log query:
Enter your aggregate search query in the text box and press Enter. Only search results that have been aggregated using a group or aggregate operator can be charted. See Group or Aggregate Operators for a list. By default, the query builder is set to Logs.

Metrics query:
Click the left-most dropdown option and select Metrics. For best results, learn the basics of creating metrics queries first. By default, the query builder is set to Logs.

Build the metrics query in Metrics Search.

-
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.

Boolean
A boolean single value chart displays a value as true or false. For example, the following query checks whether the search finds more than 100 errors.
error | count as MyCount | if (MyCount> 100, true, false) as MyCount
The boolean single value chart would look like the following.
Sparkline
The Sparkline option is available for metrics and logs queries. For a log query, include a timeslice operation and sort the timeslice in the query so the sparkline renders correctly.