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!

Account Access Log Rotation Setting?

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

  1. jazee

    jazee Well-Known Member

    Joined:
    Jan 12, 2015
    Messages:
    80
    Likes Received:
    1
    Trophy Points:
    8
    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

    Joined:
    Apr 11, 2011
    Messages:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice