Dashboards & Visualizations

How to create a graph that shows number of active users over time?

akblackwel
Loves-to-Learn

I'm trying to determine what hours over 7 days our ftp server has the lowest activity, or when no one is logged in.

Logging is captured by session, example below.

I'd like to produce a graph if possible that shows last 7 days number of active users over 1 hour timespan.

2018-01-31 06:28:39 110.10.10.10 - someuser [181000]quit - - 221 - - - 22 
2018-01-31 06:28:39 110.10.10.10 - someuser [181000]kick - - 421 - - - 22 
2018-01-31 06:28:39 110.10.10.10 - someuser [181000]ssh_disconnect timeout - 421 - - - 22 
Tags (2)
0 Karma

nabeel652
Builder

create bins of one hours and distinct count the users - you can show this in table or bar/column graph

index=yourindex | bin span=1h _time | stats distinct_count(Username) as active_users by _time
0 Karma

davpx
Communicator

Something like

 index=foo sourcetype=bar ssh | stats count by date_hour
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...