Menu

#866 Support for Nginx logs

open
None
5
2017-03-20
2011-10-27
Joseph Chai
No

Current version of AWStats didn't work with Nginx without using any complicated workarounds. Since Nginx is now becoming increasing popular, support for Nginx logs natively would be good. Really hope that AWStats can be used to monitor Nginx-based server just like any other webservers. Thanks.

Discussion

  • Sergey Kirpichev

    See
    https://bugs.debian.org/626185
    as an example of the problem.

     
  • Silviu Dan T

    Silviu Dan T - 2017-03-20

    AWstats seems to be reading the Nginx logs fine, expect for the 400 errors.
    It's logging 400 bad request errors as hits and due to the large number of automated bots which try to find vulnerabilities, the website can seem to have a large number of visitors despite the fact that they are not real. It would be great if we could somehow filter out such IPs.

    Here is how the log looks like:
    94.66.xx.xx - - [22/Mar/2017:09:15:49 +0000] "GET /wp-login.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1" "-"
    94.66.xx.xx - - [22/Mar/2017:09:15:50 +0000] "GET /wp-login.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1" "-"
    94.66.1xx.xx - - [22/Mar/2017:09:15:50 +0000] "GET /wp-login.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1" "-"

     

    Last edit: Silviu Dan T 2017-03-20

Log in to post a comment.