Splunk Search

Calculate ratio for 500's status error

blago
Engager

I would like to get % for 5xx's errors.
How to calculate that?
alt text

Tags (1)
0 Karma

niketn
Legend

@blago, please try the following:

<YourBaseSearch>
| addtotals row=t fieldname="Row_Total"
| eval Perc_5xx=round(('5xx'/Row_Total)*100,2)
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...