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
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...