Getting Data In

How to calculate bytes per second for each transaction in splunk

Aps17
Explorer

I want to calculate the download speed for each fetched transaction page in bytes per second.
transaction pages consist of login page(that has user login details) and openloan pages consist of documents. I want to have data in bytes per second
I have written the below query that gives  me response time in second and i would like to add one more field here that would give me data in bytes per second for  fetched  transaction pages.

index=app_iis source=*Inetpub* (host=JTCOTWCEMPLW* OR host=JTCOTWCEMPPW* OR host=JTCEP1WPLOSW* OR host=JTCEP1WPPORW*) http_method=GET Uri="*LOSWeb*" Uri="*aspx*" Time_taken!="-"
|eval APClientSource=split(Uri,"/"), APClientName=mvindex(APClientSource,1)
|search APClientSource="Login.aspx" OR APClientSource="OpenLoan.aspx"
|eval "Time_taken(s)"='Time_taken'/1000
|bin _time span=5m |stats avg(Time_taken(s)) as avgURT,distinct_count(C_username) as usercount by host,APClientName,cs_uri_stem,_time
|eval avgURT=round(avgURT,0),StdevURT=round(StdevURT,0)

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Which fields in your data tell you how much data is downloaded per response? Does this include headers? Are you interested in these?

0 Karma

Aps17
Explorer

I am trying to calculate it based on bytes_in and bytes_out information

|eval MB=((bytes_in+bytes_out)/1024)
|eval GB=(MB/1024)


will this query give me the download speed for each response.

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...