Join the community today
Register Now

Command to check requests?

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

  1. pamamolf

    pamamolf Well-Known Member

    2,816
    249
    63
    May 31, 2014
    Ratings:
    +443
    Local Time:
    2:19 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:19 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. pamamolf

    pamamolf Well-Known Member

    2,816
    249
    63
    May 31, 2014
    Ratings:
    +443
    Local Time:
    2:19 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Didn't check but i will thanks :)
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:19 AM
    1.11
    10.2
    • Like Like x 1
    • Informative Informative x 1
  5. pamamolf

    pamamolf Well-Known Member

    2,816
    249
    63
    May 31, 2014
    Ratings:
    +443
    Local Time:
    2:19 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    If i can check per ip who has more requests it will be great :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,835
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    10:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    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 |
     
    • Winner Winner x 1
    • Informative Informative x 1
  7. pamamolf

    pamamolf Well-Known Member

    2,816
    249
    63
    May 31, 2014
    Ratings:
    +443
    Local Time:
    2:19 AM
    Nginx-1.13.x
    MariaDB 10.1.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. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:19 AM
    1.11
    10.2
    • Like Like x 1
  9. pamamolf

    pamamolf Well-Known Member

    2,816
    249
    63
    May 31, 2014
    Ratings:
    +443
    Local Time:
    2:19 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Thanks :)
     
    Last edited: Feb 3, 2016