From: Kaushal Shriyan on
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.

Thanks,

Kaushal


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/6b16fb4c1003040142k3bd1ce5duc9fc396a86d9e743(a)mail.gmail.com
From: Olaf Reitmaier Veracierta on
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(a)gmail.com>
---------------------------------------------------------------------
Personal Web Page -- http://olafrv.com -- info(a)olafrv.com
---------------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4B9084E2.70000(a)gmail.com
From: Laurent Guignard on
On Thu, 04 Mar 2010 15:12:18 +0530, 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.
>
> Thanks,
>
> Kaushal
>
>

May be the "prerotate" in logrotate file ???


You're welcome.

--
Laurent Guignard, Registered as user #301590 with the Linux Counter
Site : http://www.famille-guignard.org
Blog : http://blog.famille-guignard.org
Projet : http://sicontact.sourceforge.net
GULL de Villefranche sur Sa�ne : http://www.cagull.org



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100307143523.GA14483(a)portable.home.famille-guignard.org