Skip to main content

How to keep logs /var/log/apache2/domlogs/account/ without them being deleted

Comments

5 comments

  • cPRex Jurassic Moderator

    Hey there!  If you have the archive option enabled you would find those inside each user's home directory as outlined here:

    https://support.cpanel.net/hc/en-us/articles/360056438834-Where-can-I-find-domain-access-logs

    This helps to save disk space on the system overall as the disk usage is accounted to that specific user rather than the server in general.

    Do you see the files there on your machine?

    0
  • Emilio José

    Hello, thank you for the response, yes I have found the user's logs in their corresponding folder. Once the statistics are processed, if you have the Delete each domain’s access logs tab after statistics are gathered, the logs are copied to the home/user/logs/ folder.

    Are these user account logs the same ones found in the /var/log/apache2/domlogs and /var/log/apache2/domlogs/acount folder or do they contain less information than the raw domlogs logs? I understand that the domlogs logs contain more information than the home/acount/logs logs. If they are the same logs without loss of information, I won't fight with the issue anymore.

    I have looked at the issue of configuring logrotate, but if you rotate the files and they are compressed before the statistics are executed, cpanel does not read the rotated files (compressed in zip), so even if the size of the rar is increased logotate runs at dawn , around 00 AM while the statistics are run at 1 in the afternoon. Therefore, information would be lost. Since it would not read from the logs once rotated. So I think that even if I fine-tune the times in achievement, I think that information will always be lost.

    Thanks in advance for the response.

    0
  • cPRex Jurassic Moderator

    Yes, those should be the same as what you find in the daily logs in /var/log/apache2/domlogs with the same information. 

    0
  • Emilio José

    Should it or is it? jeje

    Thank you!!

    0
  • cPRex Jurassic Moderator

    Ha!  I know, I try and avoid "should" when posting, and need to be better about that.

    0

Please sign in to leave a comment.