0

I rencently updated the config of my server to relocate the /var/www and /var/log in the /home folder, i also updated all my virtuals hosts to write the logs in the new /home/log folder.

But now the logs are written inside huge files, one for the error and one for the access and not in form of multiples archived files (like log.1.log, log.2.gz) like before.

How can i restore the log file splitting?

2 Answers 2

2

Since you have changed the location of the logs you should also update configs in logrotate cause it still looks for those logs in /var/log. I don't know what Linux distro you're using but they should be in /etc/logrotate.d/ directory

2
  • Thanks, do i need to restart the server after the update of the logrogate file? Aug 27, 2012 at 14:02
  • No : Have a look at your crontabs, that's where logrotate is usually triggered
    – user130370
    Aug 27, 2012 at 14:23
1

You need to change /etc/logrotate.d/apache2. See http://www.thegeekstuff.com/2010/07/logrotate-examples/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .