Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Account Access Log Rotation Setting?

Discussion in 'General Discussion' started by jazee, Dec 4, 2017.

  1. jazee

    jazee Well-Known Member

    Jan 12, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Access logs for an account are stored in:

    /home/{account name}/access-logs which is actually a symlink to:

    /etc/apache2/logs/domlogs/{account name}

    Currently there are two files, non-ssl and ssl access log, and it shows the current day's access log. What if I want this access log to show more than one day's worth of data, where do I change that setting?

    ... Well I found the tweak setting that is by default on for "Delete each domain’s access logs after statistics are gathered" and turned that off.

    But what if I want to control the access log rotation of just one particular account?

    I'd like to avoid story unnecessary log data so I'd like to go back to the original setting so all accounts the access-log for the account is reset each day but on one particular account it is reset once a week.
    #1 jazee, Dec 4, 2017
    Last edited: Dec 4, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    The following options are available under the "Raw Access" feature in cPanel:

    Archive logs in your home directory at the end of each stats run every 24 hours.
    Remove the previous month’s archived logs from your home directory at the end of each month.

    I believe this will offer the functionality you are seeking.

    Thank you.

Share This Page