How to configure GeoIP plugin for AWStats?

Follow

Comments

7 comments

  • Avatar
    Ramón Cutanda (Edited )

    I have followed these instructions and now AWStats shows the country info for my websites. However, in my biggest site AWStats has only been able to detect a 0,15% of the hits (5,080 out of 3,200,470)

    According to this info (https://dev.maxmind.com/geoip/geoip2/geolite2/) GeoIP dabatases were discontinued on January 2, 2019. So, my question is, is it possible to update the AWStats version used by Plesk to use GeoLite2? If so, how?

    Thank you very much in advance.

  • Avatar
    Denis Bykov

    @Ramón

    There is no reliable solution to use GeoLite2 in AWStats so far. Workarounds and development is under discussion here - https://github.com/eldy/awstats/issues/86

  • Avatar
    Ramón Cutanda

    Thank you so much for your reply Denis,

    I tried the suggested steps and versions, but it seems I am out of luck :-( I guess I will have to wait to an official update.

    Thank you for the link, though.

    All the best,

  • Avatar
    Bob B

    Slightly related question...  How do I get AWStats to resolve the IP addresses?  I assume the logresolvemerge tool is not running to resolve the IP addresses in AWStats reports.

  • Avatar
    Alisa Kasyanova

    @Bob B
    Check whether you have log anonymization enabled in Plesk > Tools & Settings > Server Settings > Anonimyze IPs during log rotation. If so, disable it.

  • Avatar
    Bob B

    @Alisa Kasyanova
    Log anonymization is off.  Any other ideas?

  • Avatar
    Alisa Kasyanova

    @Bob B
    Do you have a custom Virtual Host template? It can modify the log format, and webstatistics calculation will be broken as webstat tools (Webalizer and Awstats) use CLF (Common Log Format) when each line in a file stored in the Common Log Format has the strictly defined syntax.
    If you use default templates, feel free to submit a support request as per https://support.plesk.com/hc/en-us/articles/213608509-How-to-submit-a-request-to-Plesk-support- .

Please sign in to leave a comment.

Have more questions? Submit a request