Splunk Search

percentage of field

tej8
New Member

I have two fields body.response.successcount and body.response.failurecount .How to write query for success count % & failure Count % individually?

Tags (1)
0 Karma

burwell
SplunkTrust
SplunkTrust

Something like this?

<your search>
|  eval success_percent = (body.response.successcount*100)/total
|  eval failure_percent = (body.response.failurecount*100)/total
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...