Re: logrotate
On 04/03/10 05:12, Kaushal Shriyan wrote:
Hi,
is there a way to scp or rsync the files to a remote host older than
15 days in the logrotate config and than delete it on localhost older
than 15 days, so that at a time only 15 days of logs are available on localhost.
Increment logrotate for 15 days in /etc/logrotate.conf:
# rotate log files weekly
weekly
# keep 2 weeks worth of backlogs
rotate 2
And store logs on log server (section 4.12.3):
http://www.debian.org/doc/manuals/securing-debian-howto/ch4.en.html#s-log-alerts
Thanks,
You're welcome.
Kaushal
--
---------------------------------------------------------------------
"You don't know where your shadow will fall",
Somebody.-
---------------------------------------------------------------------
Ing. Olaf Reitmaier Veracierta<olafrv@gmail.com>
---------------------------------------------------------------------
Personal Web Page -- http://olafrv.com -- info@olafrv.com
---------------------------------------------------------------------
Reply to:
- References:
- logrotate
- From: Kaushal Shriyan <kaushalshriyan@gmail.com>