PDA

View Full Version : Managing Logs



phree
30th July 2007, 01:51 PM
Hi,

So my Fedora 7 installation is going well, however I am starting to rack up some log files and i was wondering what options people use to contro/manage them all?


Rgds Phree

Hlingler
30th July 2007, 06:34 PM
Hello:

What log files are you referring to??? /var/log/*??? The file /etc/syslog.conf controls what level of detail (e.g., debug, info, warn, error, critical, etc.) is logged, and what logfile various general stuff is logged to. I've attached my /etc/syslog.conf.

Hope this helps,
V

EDIT: This is just an example. Consult "man syslog.conf" for details on use.

phree
31st July 2007, 02:53 PM
Hlinger, thanks. I was refering to the /var/log/*?? log files. i was talking to a someone today who mentioned logrotate? i will look at that and man syslog.conf tonight. thanks for the tip.

rgds Phree

Hlingler
31st July 2007, 07:55 PM
Hello:

Yes, logrotate manages the logs in /var/log/, rotating and optionally compressing old logs. You can define the rotation schedule for each logfile, as well as various options: compress or not, number of old logs to keep, frequency of rotation (including max logfile size), etc. Consult "man logrotate" for details.

Regards,
V