You are here

log

Rotating Log Files in Linux

Applications usually generate a huge amount of log files. Some logging utilities available to programming languages already have the rotating (or rolling) functionality. If this is not the case and you are using some flavor of Linux or Unix to run your system, you might use the logrotate utility. Check if you have it available by typing:

[definenull@hm1446 prp]$ whereis logrotate
logrotate: /usr/sbin/logrotate /etc/logrotate.conf /etc/logrotate.d /usr/share/man/man8/logrotate.8.gz
Subscribe to RSS - log