Splunk Search

How to write a search to find which user did a sudo to root for the last 2 days on Linux servers?

sandyganti13
New Member

Would it be something like:

sourcetype="/var/log/secure" eventtype="su_authentication"
0 Karma

sundareshr
Legend

Try source="/var/log/auth.log" sudo

0 Karma

sandyganti13
New Member

When i give source="/var/log/auth.log" sudo it is showing all the accounts that performed a sudo not only to ROOT but also to other ones.

i am trying to sort out the results only to ROOT like, the accounts that did sudo su - root.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...