Alerting

Alert when service stopped using perf mon

matthewcanty
Communicator

source="Perfmon*" counter="% Processor Time" | chart last(Value) by _time, host

How can I develop this search into an alert, which detects when a host has stopped sending perfmon events.

I would like it to send an email to me stating which host is no longer working.

Tags (2)
0 Karma
1 Solution

cphair
Builder

If you have an index dedicated to perfmon, you might find metadata easier:


| metadata type=hosts index=perfmon | where lastTime<now()-900

This search returns the machines that haven't reported anything in 15 minutes; I'm assuming the actual counter is irrelevant to you. You can adjust the time as required, but I wouldn't go much shorter or you'll get a bunch of false positives during reboots. Once you have the search tuned the way you want it, you can set up the alert as described in http://docs.splunk.com/Documentation/Splunk/latest/User/SchedulingSavedSearches.

View solution in original post

0 Karma

cphair
Builder

If you have an index dedicated to perfmon, you might find metadata easier:


| metadata type=hosts index=perfmon | where lastTime<now()-900

This search returns the machines that haven't reported anything in 15 minutes; I'm assuming the actual counter is irrelevant to you. You can adjust the time as required, but I wouldn't go much shorter or you'll get a bunch of false positives during reboots. Once you have the search tuned the way you want it, you can set up the alert as described in http://docs.splunk.com/Documentation/Splunk/latest/User/SchedulingSavedSearches.

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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...