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
Revered Legend

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
Revered Legend

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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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