logrotate
Harry Hoffman
hhoffman at ip-solutions.net
Thu Jul 22 17:06:23 UTC 2010
Hi Dave,
See /etc/cron.daily/logrotate, and /etc/anacrontab (this is where
cron.{daily,weekly,monthly} are called from.
for Logrotate to start processing new files you need to define them
in /etc/logrotate.d/ (see the files in there for examples)
HTH,
Harry
On Thu, 2010-07-22 at 09:41 -0700, Martini, Dave wrote:
> on my RHEL 5 I have /etc/logrotate.conf
>
> # rotate log files daily
> daily
>
> # keep 24 days worth of backlogs
> rotate 24
>
> At what time of the day does the new log file get created?
> Do all log files defined in /etc/syslog.conf get rotated based on the above logrotate.conf entry?
>
> In my /etc/syslog.conf I have
>
> # Save all logs to /DATA1/logs/syslog
> *.* /DATA1/logs/syslog
>
> Does logrotate also work on user specified log files like the one I've specified to /DATA1 above?
>
> Does a service need to be restarted once logrotate is edited?
>
> Thanks.
> David Martini
> LLNL
>
>
>
>
More information about the redhat-list
mailing list