Splunk Search

How to calculate AVG speed of web requests of specific time range?

test_qweqwe
Builder

I have web logs and I want to define any kind of automatic scripts that analyze web pages or any dump attempt.
Of course, I can do this based on a lot of unique URLs, but I want to try to do it through an abnormal speed.

What fields I have: src_ip, user, url. http_method, session_id, http_user_agent, response_code, url_length, bytes.

Tags (2)
0 Karma

nickhills
Ultra Champion

There are several ways you could do this.

See if this addresses your needs for a table view

<your search>| bin span=1s _time
| stats count by _time, src_ip

You can change the span value to any time bracket you choose 5s 1m etc.
This will give you totals of the requests made in that window, by the src_ip

If you want a simple visualisation, you could use timechart instead

<your search>| timechart count by src_ip span=5s

Both approaches show the same data in slightly different formats.

If my comment helps, please give it a thumbs up!
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

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