Alerting

How to create an alert if failure increased in last 5 minutes?

iqbalintouch
Path Finder

Hi,

I want to create an alert which gets triggered if the failure count is more than 5 in last 5 minutes:


1- it should run on every 5 minutes
2- it should send an email as well

Here is base search and settings as well:

index=myindex sourcetype=xyz host=“tus3crs” "EventLogger*" AND "Purchase event" vertical=Stationary Type=Notebook (PurchaseStatus=510 OR PurchaseStatus=515 OR PurchaseStatus=530 OR PurchaseStatus=540) | dedup itemId sortBy -_time

NOTE- These status are different failure states of the itemalt text

Please help me with setting up this alert. thank you.

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I've found it easiest to have the search test for the alert condition and have the alert trigger if the number of results is not zero. In this case,

index=myindex sourcetype=xyz host=“tus3crs” "EventLogger*" AND "Purchase event" vertical=Stationary Type=Notebook (PurchaseStatus=510 OR PurchaseStatus=515 OR PurchaseStatus=530 OR PurchaseStatus=540) 
| stats count by itemId 
| where count > 5
---
If this reply helps you, Karma would be appreciated.
0 Karma

iqbalintouch
Path Finder

thank you @richgalloway , so that means the trigger condition in the screenshot not need to change..only base query require changes ?
please correct me.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The trigger condition does need to change from 5 to 0.

---
If this reply helps you, Karma would be appreciated.
0 Karma

iqbalintouch
Path Finder

@woodcock hi,
if you can help, please.

thanks in advance.

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...