Alerting

Alert when something is not there

matthewcanty
Communicator

I want to have an alert for when a host is NOT there. And then be able to pass that host name by email. Lets say I have 3 hosts - A B C - and I am displaying Service Process information by host. When all is normal I have all three hosts. If a host/service then stops it no long appears in the results so I cannot draw any information.

Is it possible to keep some kind of comparative what I expect to see list?

Tags (1)
0 Karma
1 Solution

matthewcanty
Communicator

After speaking with a colleague he showed me how their team overcomes this problem. Now I just look at the events for the last 4 minutes, and evaluate the gap, then if the gap is greater than 2 minutes trigger an alert.

sourcetype="Perfmon*" earliest=-4m instance="Spin.*" | stats max(_time) As LatestTime by host, instance | eval Gap=(now()-LatestTime) | search Gap>120 | fields host, instance

View solution in original post

0 Karma

matthewcanty
Communicator

After speaking with a colleague he showed me how their team overcomes this problem. Now I just look at the events for the last 4 minutes, and evaluate the gap, then if the gap is greater than 2 minutes trigger an alert.

sourcetype="Perfmon*" earliest=-4m instance="Spin.*" | stats max(_time) As LatestTime by host, instance | eval Gap=(now()-LatestTime) | search Gap>120 | fields host, instance

0 Karma

sdaniels
Splunk Employee
Splunk Employee

You can store data in a lookup and then use those values to see when an expected result does not appear.

http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups

Here's a similar splunk answer on this topic. You could also create an alert on this type of metadata search.

http://splunk-base.splunk.com/answers/3181/how-do-i-alert-when-a-host-stops-sending-data

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...