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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...