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!

Index This | What’s a riddle wrapped in an enigma?

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

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...