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!

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

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...