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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...