Alerting

How to monitor and alert on any success or failure of a su to root on my *nix systems?

bgamblin
Explorer

How do I monitor and alert on any success or failure of a su to root on my *nix systems?

0 Karma

somesoni2
Revered Legend

You can (if not already) monitoring for sudo logs in your nix systems. I believe it should be available at /var/adm/sudo.log. Once the data is available in Splunk, you can use following to learn how to create alerts.

http://docs.splunk.com/Documentation/Splunk/6.2.0/Alert/Aboutalerts
www.splunk.com/view/SP-CAAAGYG

0 Karma

lycollicott
Motivator

If you can query those events in search you can then create an alert on those.

In top right of window click "Save As" and select "Alert" from the drop down. It will walk you through it.

This could help if you haven't seen it yet.
http://docs.splunk.com/Documentation/Splunk/6.3.2/Alert/Aboutalerts

0 Karma

mihall
Path Finder

What would this search query look like?

0 Karma

lycollicott
Motivator

On CentOS the su failure is logged in /var/log/messages like this:

Jul 19 12:38:17 localhost su: FAILED SU (to root) non_root on pts/0

So something like this query:

index=whatever_your_index_is  "FAILED SU (to root) "
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

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