Splunk Search

Created a report where I need to trigger an alert depending on the value of a cell

gsbpp
Observer

I have the following search

index=xoom_app_online_checkout_orchestration_api (level=ERROR AND "Failed to get open-banking realtime balance" AND issue=* ) OR event_type=OPEN_BANKING_REALTIME_BALANCE_SUCCESS | eval Issue=if(event_type=="OPEN_BANKING_REALTIME_BALANCE_SUCCESS", "OPEN_BANKING_REALTIME_BALANCE_SUCCESS", issue) |  stats count as Count by Issue | eventstats sum(Count) as Total
| eval Percentage=round((Count/Total)*100,2)
| fields - Total
| sort 0 - Count | addcoltotals

 

I get this result:

Issue                                                                                                Count Percentage
OPEN_BANKING_REALTIME_BALANCE_SUCCESS18176.05
VALIDATION_ERROR4217.65
INVALID_LOGIN_CREDENTIALS145.88
PERMISSION_DENIED10.42
 238100.00

 

I want to trigger an alert if the "Percentage" value of the row  with Issue= OPEN_BANKING_REALTIME_BALANCE_SUCCESS is < 75

Could not figure out how to add a hidden filed or so... to use as the WHERE clause for the alert

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Why do you need a hidden field, the information you need is already in the first row of the results, which you can trigger on. That is, trigger if the first issue is not OPEN_BANKING_REALTIME_BALANCE_SUCCESS OR if the first Percentage is less than 75

0 Karma

gsbpp
Observer

The table I displyed (report) is the one I want to email or slack,

I do not want extra fields to show. That is why I said hidden filed (in the sense that I do not want the report modified.

 

Basically, need the WHERE clause to trigger alert

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Put the condition in the custom alert condition not as a where clause in the search.

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...