Log rotation settings for domains access log

Athalstan

New member
Joined
Feb 26, 2018
Messages
5
Where do I change the log rotation settings for the domains access log?

I need to configure how often to rotate the logs, to make it rotate the domain logs monthly instead of daily.

Also if it's possible to use some compression options.
 
Edit /etc/logrotate.conf and change "weekly" to "daily".

Regarding compression, the user domain logs are already compressed with tar.gz.
 
Last edited:
Edit /etc/logrotate.conf and change "weekly" to "daily".

Regarding compression, the user domain logs are already compressed with tar.gz.

The rotation is set to weekly under global options in logrotate.conf and that is not having any effect on the user domain logs (but just the /var/log/httpd/access_log, which is fine). Unless I can define custom configuration options for the user domain logs in the logrotate.conf or a separate configuration file in the /etc/logrotate.d directory ?

I'm a newcomer to DirectAdmin so I'm not sure what I can do.
 
Back
Top