Alerting

alert

vinod_52791
Engager

I am getting success percentage from the query as 97.00% and my requirement is to add an alert when success percentage is below 95.00%

i am getting success % from below query

vinod_52791_0-1637320029885.png

please suggest the query to add an alert when successrate is 95.00% in one hour span

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Don't add the % to the successrate field, then you can do numeric comparisons on it. If you still want it displayed with the % sign, you can use fieldformat.

| eval successrate=100*successcount/total
| fieldformat successrate=successrate."%"

 

0 Karma

vinod_52791
Engager

hi @ITWhisperer 

i want to send an alert when result is below 95.00%

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| where successrate < 95

If you get any results, raise an alert

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...