Alerting

How to create alert in certain index when the word "Finished" doesn't appear within five minutes of the word "Starting"?

sheldonjolly
Engager

Hi All Splunk Experts.

I'd like to create an alert in a certain index when the word "Finished" doesn't appear within five minutes of the word "Starting".

For context, we upload file and see the string "Started" when we don't see the word "Finished" within 5 minutes, I'd like to have an alert.

btw, me regex knowledge is really crap.

Can you help.

Much appreciated, 

Sheldon.

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Search for "Starting" or "Finished" and take the first result.  If that result is "Starting" and it's at least 5 minutes old then trigger an alert.

 

index=foo ("Starting" OR "Finished")
| head 1
| search "Starting"
| where (now() - _time) > 300

Trigger the alert if the number of results is not zero.

 

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

sheldonjolly
Engager

Hey Rich, I'll give it a try.

Many thanks for the swift reply.

I'll give you a Karma anyway.

Much appreciated,

Sheldon.

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...