I am looking for a way to find who causes high load on my nginx web server but I do have too many requests per minutes to figure it out which one is the real cause.
I want a solution that would work like top
but that would give me starts like
ip | requests | average response time | total response time
---|-----------|-----------------------|--------------------
Every line looks like:
10.80.3.169 - - [02/Nov/2012:12:15:37 +0000] "POST /pages/docreatepage.action HTTP/1.1" 302 0 "http://example.com/pages/docreate" "Mozilla..." "-" 1.074 1.074
So all I need form each line is the first part (IP) and last part (duration) and to count them and display starts every few seconds.
Is there a tool that is able do to this, or should I have to code it myself?