Dashboards & Visualizations

Running total for events and unique users on dashboard

sc0tt
Builder

I would like to track the total number of events and unique users for today on a dashboard. What is the best way to do this? I know that I can simply do

| stats c as event_count dc(user) as user_count

but that would require having to scan the source and recount every couple minutes.

One idea I had was to save the results to a lookup table or use loadjob to get the totals and list of users from the previous search and then add/distinct count with the most recent search to get the new total.

Is there another way to accomplish this?

Thanks

Tags (3)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi sc0tt

if I get you correct, you want something similar to the summary view of the Search App?

There you also get running numbers of indexed events. If this is what you want, you can look at the view called dashboard or go to Manager» User interface» Views» dashboard

In the XML of the dashboard you can see this is done with a real-time search.

Hope I get you right and this example keeps you going.....

cheers, MuS

View solution in original post

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi sc0tt

if I get you correct, you want something similar to the summary view of the Search App?

There you also get running numbers of indexed events. If this is what you want, you can look at the view called dashboard or go to Manager» User interface» Views» dashboard

In the XML of the dashboard you can see this is done with a real-time search.

Hope I get you right and this example keeps you going.....

cheers, MuS

0 Karma

sc0tt
Builder

Thanks again! This is a good start.

0 Karma

MuS
SplunkTrust
SplunkTrust

sure you can use 'earliest=rt-0d@d latest=rt' in the 'time range picker - custome time - advanced search language' for your search

0 Karma

sc0tt
Builder

Thanks. I never thought of looking at the summary view of the search app. However, I am still a bit confused on how to accomplish this. It looks like the search app is using a real-time search for all time. Is there a way to do a real-time search for just the current day?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...