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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...