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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...