Splunk Search

how to get the number of logins per user for the past 30 days?

kiran_mh
Explorer

We want to know how to get the number of logins per user for the past 30 days? and also, if there is a metric we can see how long users are logged into the system .

Tags (1)
0 Karma
1 Solution

teunlaan
Contributor

number of logins : index=_audit info=succeeded action="login attempt" | stats count by user

How many hours someone someone is accessing is very hard to get (in my opinion)
You could calculate the time between login and logout times. BUT most users don't press the logout button, so you don't have the data.

So you should track when users fires searches.

View solution in original post

0 Karma

teunlaan
Contributor

number of logins : index=_audit info=succeeded action="login attempt" | stats count by user

How many hours someone someone is accessing is very hard to get (in my opinion)
You could calculate the time between login and logout times. BUT most users don't press the logout button, so you don't have the data.

So you should track when users fires searches.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Logins to what? Which system?

---
If this reply helps you, Karma would be appreciated.
0 Karma

kiran_mh
Explorer

how to get the number of logins per user for the past 30 days
in splunk
also, if there is a metric we can see how long users are logged into the splunk

We also need to know how much hours a user is accessing splunk per day

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...