Alerting

Raise alert for specific computers

wnyricsplunk
Explorer

I would like to trigger an Alert when event 1074 (Windows Shutdown) is raised but only for specific computers. I have a group of about 50 servers and I would like to know if they shut down but I don't care about workstations in general. Since all events currently go to the same index I need a way to only trigger the alert when one of the servers raises the event. Short of a huge OR statement in my search, is there a way to do something like this?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
Unless there is some other unique attribute of the 50 servers, you have to use a bunch of ORs or a lookup file.
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

mattymo
Splunk Employee
Splunk Employee

Hi! 

You an create a macro to store the hosts that will expand into a filter, as you suggested, or you can use a lookup table that you pull into the search to use as a filter. 

https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesearchmacros

https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-filter-hosts-by-lookup-table-...

 

 

- MattyMo
0 Karma

richgalloway
SplunkTrust
SplunkTrust
Unless there is some other unique attribute of the 50 servers, you have to use a bunch of ORs or a lookup file.
---
If this reply helps you, Karma would be appreciated.
0 Karma

wnyricsplunk
Explorer

Thanks. I will try using a lookup.

0 Karma
Get Updates on the Splunk Community!

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...