Answers for "How to calculate HTTP throughput in GB and average HTTP throughput in KBits/Sec?"
https://answers.splunk.com/answers/753198/how-to-calculate-http-throughput-in-gb-and-average.html
The latest answers for the question "How to calculate HTTP throughput in GB and average HTTP throughput in KBits/Sec?"Answer by adonio
https://answers.splunk.com/answering/753321/view.html
very general question here ....
lets assume you have the field: `throughput_kb` and it has numerical values in it
if you want to calculate GB you will divide by 1024/1024 like this:
| eval throughput_gb = throughput_kb/1024/1024
you can avg using `stats` or `eventstats` or other options like `chart` and `timechart` for example:
try to run this search anywhere to create fake data, and use some functions to match your needs:
| gentimes start=-1 increment=20s
| eval _time = starttime
| eval throughput_kb = 1000000 + random()%1000000
| eval throughput_gb = throughput_kb/1024/1024
| fields _time throughput*
the above will create fake data with time and random values for throughput_kb
now try something like this:
| bin _time span=1m
| stats avg(throughput_kb) as avg_kb avg(throughput_gb) as avg_gb by _time
to get average per minute
and add this:
`| eval avg_kb_per_sec = round(avg_kb / 60, 3)`
to get average per second
hope it helpsFri, 21 Jun 2019 14:45:03 GMTadonio