Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
These log files are being generated through in-house process. Could I use this utility "logrotate" to clean up other log files being generated through other process? There are couple thousands of these files and I would like to clean them up on a daily bases.
excerpt from 'man logrotate';
LOGROTATE(8) System Administrator's Manual LOGROTATE(8)
logrotate - rotates, compresses, and mails system logs
logrotate [-dv] [-f|--force] [-s|--state file] config_file+
logrotate is designed to ease administration of systems that generate
large numbers of log files. It allows automatic rotation, compression,
removal, and mailing of log files. Each log file may be handled daily,
weekly, monthly, or when it grows too large.
Normally, logrotate is run as a daily cron job. It will not modify a
log multiple times in one day unless the criterium for that log is
based on the log's size and logrotate is being run multiple times each
day, or unless the -f or -force option is used.
Any number of config files may be given on the command line. Later con-
fig files may override the options given in earlier files, so the order
in which the logrotate config files are listed in is important. Nor-
mally, a single config file which includes any other config files which
are needed should be used. See below for more information on how to