Alerting

Need help setting a customized alert

subhadipc
Explorer

I have the following query:
.... | eval time_sec = round(time_taken/1000) | chart max(time_sec) as max_response_time by cs_uri_stem

The aim of the above is to return the maximum response time of the pages mentioned in the ... section. I want this query to be scheduled to run at midnight. Also, if the max_response_time of any page in the result set is higher than a value (say xx), it should alert by sending mails.

How do I achieve this?

Tags (1)
0 Karma

MarioM
Motivator
| eval time_sec = round(time_taken/1000) 

| chart max(time_sec) as max_response_time by cs_uri_stem 

| where max_response_time > xx

| sendemail to="elvis@server.com,john@server.com" format=html subject=myresults server=mail.server.com`

Then you saved the search and edit it in Manager >> Searches & Reports, to set the schedule

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...