access_log.webstat not being rotated or removed when web statistics tool is not installed in Plesk

Follow

Comments

6 comments

  • Avatar
    Sascha Henken (Edited )

    I have a similiar problem:

    access_log.webstat & access_ssl_log.webstat file are not being rotated, though AWStats is installed. The files contain over a year old entries and those are getting bigger and bigger. What problem could it be even if AWStats is installed on the server? I´m running Plesk 17.5.3 Update 59 on a Ubuntu 16.04 LTS Linux. This goes for every domain that is created in Plesk. Lot´s of GBs wasted and could be spared if rotation would work correctly.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Sascha,

    The case needs a deeper investigation.

    As I can see, you have already submitted a ticket to Plesk Technical Support.

    Currently, the ticket is worked on.

    0
    Comment actions Permalink
  • Avatar
    Ari Benami
    1&1 Ticket no 151246
    OS
    CentOS Linux 7.6.1810 (Core)
    Product Plesk Onyx 
    Version 17.8.11 Update #54, last updated on June 3, 2019 03:43 AM
     
    Its been six months since I reported that the log files are taking up tens of gigs of data on my server. Until when do you expect us to manually delete the log files?  
    I tried implementing the "event handler" solution, but the files are still there. Can you please advise?
    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hello @Ari Benami,

    > Until when do you expect us to manually delete the log files?

    Currently, we have no information when the bug will be fixed

    > I tried implementing the "event handler" solution, but the files are still there. Can you please advise?

    The "event handler" solution should not remove webstat files

    It works for the case when the "/var/www/vhosts/system/example.com/logs/*.webstat" files are growing after the Daily Task execution and it is required to stop it

    Warning: it affects the whole server

    First of all, you execute this command:

    # echo -e '#!/bin/bash\necho' > /usr/lib64/plesk-9.0/logresolvemerge

    As a result, you modify the "/usr/lib64/plesk-9.0/logresolvemerge" file and disable *.webstat files processing

    However, Plesk update/upgrade rewrites the content of the "/usr/lib64/plesk-9.0/logresolvemerge" file

    In order to avoid this, you have to add the corresponding Event Handler to Plesk which will be rewriting the "/usr/lib64/plesk-9.0/logresolvemerge" file automatically

    In this case, webstat files will not continue growing

    Also, you can install AWStats back and rotate .webstat files by following steps from the "Install web statistics tool" section. After this, disable AWStats on all affected domains via "Plesk > Domains > example.com > Hosting Settings > Web statistics" or "Plesk > Service Plans > Default > Hosting Parameters > Web statistics"

    0
    Comment actions Permalink
  • Avatar
    Remigio Ruberto

    On my ubuntu 18.04 /usr/lib/plesk-9.0 there is no file named logresolvemerge

    root@100asa:~# echo -e '#!/bin/bash\necho' > /usr/lib64/plesk-9.0/logresolvemerge
    -bash: /usr/lib64/plesk-9.0/logresolvemerge: No such file or directory

    0
    Comment actions Permalink
  • Avatar
    Daria Gavrilova

    Hello @Remigio Ruberto,

    Thank you for the input!

    The cause of such behavior is that the path /usr/lib64/plesk-9.0/logresolvemerge can be used for RHEL-based OS only.

    To execute the command properly, please use the following command:

    # echo -e '#!/bin/bash\necho' > /usr/lib/plesk-9.0/logresolvemerge

    The article will be modified accordingly on this matter.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request