Deployment Architecture

Top User Access Query

sourabh_v
Explorer

Hi,

I want to make a search query on Linux which gives me a list of top 5 users who have accessed the linux machine the most number of times. I have /var/log/secure logs monitored. Please help.

Tags (1)
0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

An example log is helpful here, but you simply splunk the logs, create a field called user if it doesn't exist already, and then run the search. For example, if I want to see this result for the past 30 days:

sourcetype=mysecurelog earliest=-30d latest=now | top user limit=5

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...