Your log should be rotated on a regular basis with a cron job that
occurs by default on redhat systems around 4am, unless your
computer is closed which is what I suspect.

The time the scripts are run is in the file /etc/crontab :

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=dominic
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly


To change options on the rotation of the log process "weekly" vs
"daily","compress" or "uncompress", how many backlogs to keep, etc
see the file /etc/logrotate.conf and man logrotate.

Cheers,

Dominic.



Mike Illian <[EMAIL PROTECTED]> writes:

> Is there a command in that will let me roatate my syslogs on a
> regular basis?
> 
> Or do I need to create a cron job that will stop syslog, rename my
> 
> log file, and then start syslog back up?
> 
> Thanks.
> 
> 
> 
> _______________________________________________ Redhat-list
> mailing list [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to