Splunk Search

how to calculate Throughput

rajhemant26
New Member

Hello everyone.

Want to display the output only for the time which crosses 18 months (earliest time)

Tags (1)
0 Karma

adonio
Ultra Champion

hello there,

tried your search, it works on my dummy data.
can you verify again?

| gentimes start="08/18/2018:00:00:00" end="08/18/2018:00:10:00" increment=2s
| eval _time = starttime 
| eval R = random()%500
| eval THREAD_WALL_MS = random()%1000
| eval host = random()%3 
| eval host_type = case(host=1,"some_type",host=2,"other_type",host=0,"deferent_type")
| rename COMMENT as "the above generates sample data, below is your query"
| bucket span=10min _time
| stats count(R) as Requests, max(THREAD_WALL_MS) as "TotalResponseTime", avg(THREAD_WALL_MS) as avg_rt by host_type _time 
|eval avg_rt=round(avg_rt,2)
|eval TotalResponseTime=round(TotalResponseTime,2) 
|rename avg_rt as "AvgResponseTime"
|eval Throughput=(TotalResponseTime/Requests)
|dedup 1 host_type
|rename host_type as "Server"
|sort Server

hope it helps

0 Karma

adonio
Ultra Champion

try this:
... |eval Throughput=TotalResponseTime/Requests ...

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...