Splunk Search

How to calculate page bounce rate as a single value percentage?

ashnet16
Path Finder

I'm trying to display bounce rate as a single value percent. Does anyone have any idea on how I can do it?
As of of, i'm displaying the count of bounces. Thanks in advanced!

sourcetype=access_* | transaction clientip maxpause=1h keepevicted=t mvlist=t | eval bounce_count=case(eventcount=1,"Bounced")|stats count(bounce_count) as "Total page Bounces"| eval total_trans=case(eventcount>=1,"Total Visits")| eval bounce_rate= bounce_count/total_trans

Tags (2)
0 Karma

aweitzman
Motivator

Do you mean something like:

<your search> | eval bounce_rate_as_percent=tostring(round(bounce_rate*100))."%"

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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