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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...