Splunk Search

show precent of http errors

jrich523
Path Finder

I saw a decent amount of questions about similar stuff, but i wasnt able to make it happen.

I have a field that is http-status and i want the percent of http-status > 499 of total

Tags (3)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try following

<your base search which gives http_status field> | stats count as total, count(eval(tonumber(http_status)>499)) as total499plushttpstatus | eval percHttpStatus499Plus = (total499plushttpstatus*100)/total

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Try following

<your base search which gives http_status field> | stats count as total, count(eval(tonumber(http_status)>499)) as total499plushttpstatus | eval percHttpStatus499Plus = (total499plushttpstatus*100)/total
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...