How to make custom changes to AWStats settings for a domain?

Follow

Comments

4 comments

  • Avatar
    Bob B

    Hello,

    Please confirm the location of the awstats.model.conf file to modify to adjust server-wide AWStats settings, when using Plesk Onyx on CentOS 7.

    Best Regards,
    Bob

    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hi @Bob B,

    The path is "/etc/awstats/awstats.model.conf"

    I also made the required changes in the article

    0
    Comment actions Permalink
  • Avatar
    Bob B

    Can you provide a link to a default version of /etc/awstats/awstats.model.conf for Plesk Onyx, for reference?

    I believe the option "DNSLookup" was changed from DNSLookup=0 to DNSLookup=2 because clients complained that their AWStats reports did not include any hostnames, only IP addresses.

    Since then, but I don't know if it is related, I've noticed that multiple sites have exceeded their disk space limits.  When investigating, the overages are located in "/var/www/vhosts/example.com/statistics/webstat/" where many files are located, in the format of "awstats122018.example.com-http.txt".  It does not appear that AWStats is cleaning up after itself, causing sites' disk usage to grow.

    Is this a result of setting "DNSLookup=2"?  If so, is there another recommended way to have the reports include hosts instead of IPs?  How can I clean up the many "awstats122018.example.com-http.txt" files?

    0
    Comment actions Permalink
  • Avatar
    Bulat Tsydenov

    @Bob B

    Hi,

    > Can you provide a link to a default version of /etc/awstats/awstats.model.conf for Plesk Onyx, for reference?
    This file may be different depending on OS. Morevoer, Plesk generates a separate Awstats configuration file for every domain. Such files are located under /usr/local/psa/etc/awstats/.

    > I believe the option "DNSLookup" was changed from DNSLookup=0 to DNSLookup=2
    I've just checked in different Plesk versions and found that DNSLookup was always set to 2 in domain's configuration file.

    > Since then, but I don't know if it is related, I've noticed that multiple sites have exceeded their disk space limits. 
    I doubt that it is related. I recommend you to check the settinde under Tools & Settings - Server Settings:

    In addition, check the same option in service plans, refer to this documentation for more details:https://docs.plesk.com/en-US/obsidian/administrator-guide/appendix-a-properties-of-hosting-plans-and-subscriptions/logs-and-statistics.65723/.

    If you suspect some abnormal behavior, I recommend you contacting support at https://support.plesk.com/hc/en-us/requests/new.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request