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
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...