Alerting

Alert if an OU contains any users or computers

paul_beasto
New Member

Hi,

I am interested to create a search and alert when a specific set of OU's contains members. The OU should typically be empty and I would like to receive notification when the OU contains Computers or Users.

I am new to Splunk so apologies in advance if this request is trivial. I have check the forum already before asking but am unable to find an answer.

thanks

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Write a search that fetches strings containing OUs. Extract the OU field (perhaps using rex) then filter out the empty values ( where isnotnull(OU) is one way). Finally, save the search as an alert and make the triggering condition be number of results is not zero.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...