Hi,
I have syslog-ng installed,
but it is not rotating the logs.
After a month the log files are getting big...
syslog not archiving
Re: syslog not archiving
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:
or debian/ubuntu
after the install you can tun it immediately by:
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/*
If you want to archive them you need logrotate
This can be installed on gentoo:
Code: Select all
emerge -q app-admin/logrotate
Code: Select all
apt-get install logrotate
Code: Select all
/usr/sbin/logrotate
you should find the file /etc/cron.daily/logrotate
The config files are:
/etc/logrotate.conf
/etc/logrotate.d/*