Kevin Chan wrote: >Some of my program will create a access_log on /server/logs/. But the size >of the log is huge after a 2 weeks, how can I set the access_log on >/server/logs/ will automatically rename the old access_log to access_log.1 >and create a new access_log for reduce the file size ? > >
man logrotate The easiest way is to copy one of the files in /etc/logrotate.d/ (possibly httpd or apache) to a new file and use it as a template. Edit the values to rotate your own server's logs. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list