Splunk Search

Plottng a value (cumulative) over time.

matthewceroni
New Member

Hi:

I am feeding in Accounting data from my network equipment. This allows me to see what current active sessions I have (ie: how many users are logged into the network).

A simple search like this shows me the current active users:

index = accounting | dedup radacctid | search NOT acctstoptime = "*" | stats count

What I want to be able to do is plot this value over say the current day. The timechart function sort of works but what it is reporting is the relative number of users doing a time period. What I am looking for is the cumulative number. By that I mean, the above search runs for a time period of 9:00 am - 9:30 am and returns the number of users currently signed on. When it runs for the next time period, ending at 10:00 am (as an example) it returns the total number of users currently on the network (so almost essentially it ran the search with the new time period of 9:00 am - 10:00 am) and then repeat that for 30 minute intervals and graph.

Thanks

Tags (3)
0 Karma

jconger
Splunk Employee
Splunk Employee

A possible solution would be to use a scheduled saved search that ran every 30 minutes and saved the count to a summary index. Check out the collect command http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect

Then, you can create a report or visualization based on the data in your summary index.

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!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...