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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...