Page 1 of 1

syslog not archiving

Posted: Thu Dec 11, 2014 7:08 pm
by mister_v
Hi,

I have syslog-ng installed,
but it is not rotating the logs.
After a month the log files are getting big...

Re: syslog not archiving

Posted: Thu Dec 11, 2014 7:18 pm
by chris
Syslog is only used to let the system (and applications) log to files.

If you want to archive them you need logrotate

This can be installed on gentoo:

Code: Select all

emerge -q app-admin/logrotate
or debian/ubuntu

Code: Select all

apt-get install logrotate
after the install you can tun it immediately by:

Code: Select all

/usr/sbin/logrotate 
But mostly it is run by cron,
you should find the file /etc/cron.daily/logrotate

The config files are:
/etc/logrotate.conf
/etc/logrotate.d/*