Alerting

Alert Based on the output results

kirangurram
Explorer

Hello Experts ,
I have a splunk query which is giving me average response time using the filed "process_time".
I want to create an Alert when output of this query is > 2 seconds. Please advice , how I could setup this alert.
I tried multiple options they didint work. I tried to add | where process_time > 2. but this option didnt work.

query | stats avg(process_time)

Output :
avg(process_time)
0.07894736842105263

0 Karma
1 Solution

harsmarvania57
SplunkTrust
SplunkTrust

Hi,

Please try below

<yourSearch> 
| stats avg(process_time) as avg_process_time
| where avg_process_time > 2

View solution in original post

harsmarvania57
SplunkTrust
SplunkTrust

Hi,

Please try below

<yourSearch> 
| stats avg(process_time) as avg_process_time
| where avg_process_time > 2

kirangurram
Explorer

This works like a charm ... Thanks

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@kirangurram
try this

query | stats avg(process_time) as process_time | where process_time > 2

kirangurram
Explorer

This works like a charm ... Thanks

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 ...