syslog not archiving

All questions related to servers
Post Reply
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

syslog not archiving

Post 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...
chris
Site Admin
Posts: 194
Joined: Mon Jul 21, 2008 9:52 am

Re: syslog not archiving

Post 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/*
Post Reply