Welcome to Centmin Mod Community
Register Now

Command to check requests?

Discussion in 'System Administration' started by pamamolf, Jan 21, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    10:03 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    Is there any command that i can check which ip has the most requests (not connections) on the server?


    Also ho can i check which link request has more requests like:

    domain.com/index.html or domain.com/image.jpg or domain.com/id=123

    ?

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    10:03 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Didn't check but i will thanks :)
     
  4. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    4:03 PM
    Mainline
    10.2
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    10:03 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    If i can check per ip who has more requests it will be great :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,946
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ngxtop can do that lebinh/ngxtop · GitHub

    lebinh/ngxtop · GitHub
    Code:
    ngxtop top remote_addr
    running for 20 seconds, 3215 records processed: 159.62 req/sec
    
    top remote_addr
    | remote_addr     |   count |
    |-----------------+---------|
    | 118.173.177.161 |      20 |
    | 110.78.145.3    |      16 |
    | 171.7.153.7     |      16 |
    | 180.183.67.155  |      16 |
    | 183.89.65.9     |      16 |
    | 202.28.182.5    |      16 |
    | 1.47.170.12     |      15 |
    | 119.46.184.2    |      15 |
    | 125.26.135.219  |      15 |
    | 125.26.213.203  |      15 |
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    10:03 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    It will work if i am under Cloudflare?

    @RoldanLT
    Go access looks good but i can't find how to enable this screen as it is not there on default installation (using latest version):

    GoAccess - Screenshots

    Spot aggressive hosts/bots
    [​IMG]
     
  8. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    4:03 PM
    Mainline
    10.2
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    10:03 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Thanks :)
     
    Last edited: Feb 3, 2016