Dashboards & Visualizations

How to configure a dashboard to show an expected value?

centrisinfo
Engager

Most of the time this applies to using "Counts" in a certain Dashboard. Is it possible to show an Expected value?

For example, I have a dashboard that counts a certain log each day. There should be 30 each day, but sometimes there are only 29 due to errors. Is it possible to visualize that info against the expected number of 30? Or even just visualize it on the dashboard report as 29/30?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use the eval command to create an "expected value" field.

 

 

| stats count
| eval expected=30

 

or

 

| stats count
| eval count=count . "/30"

 

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

centrisinfo
Engager

Exactly what I was looking for. Thank you!

richgalloway
SplunkTrust
SplunkTrust

Use the eval command to create an "expected value" field.

 

 

| stats count
| eval expected=30

 

or

 

| stats count
| eval count=count . "/30"

 

 

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...