Account Access Log Rotation Setting?

jazee

Well-Known Member
Jan 12, 2015
119
4
68
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.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.