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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...