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!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...