Security

How to find max number of concurrent users in a given day on the system? How do I find it for the last 90 days?

gopiz007
New Member

For example,
Date Max_No Time

7/2/14 75 13:00:00

7/1/14 66 18:00:00

index=login service=abc | timechart span="1h" dc(memberno) | rename dc(memberno) as users | sort - users | head 1

I want to split the events into bins of 1 hr for each day and find the distinct count of them for each hour. Once I do that I need to find the max for that day(out of the 24 bins).The above query gives me the maximum count for any given day. But I want to extend it to last 90 days. how can I do that? I want to plot a graph for the same.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Try this:

index=login service=abc earliest=-90d@d| timechart span="1h" dc(memberno) as users | timechart span=1d max(users)
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...