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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...