Dashboards & Visualizations

Realtime dashboard seems to sum the results of the search

bfeinberg
Engager

I have a query like:

call summary | stats count as Total, count(eval(status=="failed")) as Failed | eval percent=(Total-Failed)/Total*100

I run this a dashboard query with 1h-rt as the start, and rt as the end. It seems like my results are being summed instead of giving me the the new percentage as derived above for each new sample set. What am I doing wrong, I assume its something easy.

0 Karma

lguinn2
Legend

A realtime dashboard panel will continue to accrue the data forever. If you want to just see the percentage over the last hour, use the same search but put the earliest=-1h and the latest=now (blank).

However, I think you also want this to be updated while the dashboard displays. You can't easily do that for a single dashboard panel, but you can do it for the dashboard overall.

Assuming that you are using the dashboard editor (or simple XML), edit the dashboard XML and look near the beginning for

<dashboard>

Change it to

<dashboard refresh="60">

Which will update the dashboard once each minute. This means that your search will be re-run automatically and a new percentage will be calculated.

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...