Keep Access Log files data history for more than 24h

philas

Member
Jan 24, 2018
6
1
3
netherland
cPanel Access Level
Root Administrator
Hello there,

For tracking of SEO effectiveness on the server level I want to keep access-logfiles for a certain domain on a cpanel server for longer than 6 month.

I already went through various forum posts and consecutively through the tweak settings and enabled archiving on the domain level but data for logfiles ist not exceeding 24 hours.

Is there any way to configure cpanel to keep access loges for more than 6 month?

Thank you for helping!

Phil
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,940
630
263
Houston
cPanel Access Level
DataCenter Provider
Hi @philas


While the logs may be removed from /etc/apache2/domlogs/ pending you have the following set to default in WHM>>Server Configuration>>Tweak Settings:

Code:
Archive logs in the user's home directory at the end of each stats run unless configured by the user.
and the following unchecked at cPanel>>Metrics>>Raw Access:

Code:
Archive log files to your home directory after the system processes statistics. The system currently processes logs every 24 hours.
 Remove the previous month’s archived logs from your home directory at the end of each month.
The logs should be archived in the user/s home directory at /home/$user/logs/ as well as be present in Raw Access indefinitely

Thanks!