From: laxman on
Hi All,

I need a script to rotate logs in /var/log/httpd for every two days.
and i want to move the old logs to different location and then delete
the logs . Please help in this i am using Redhat linux.

Thanks in Advance
Lakshman.

From: Stachu 'Dozzie' K. on
On 2010-02-24, laxman <alakshmanrao(a)gmail.com> wrote:
> Hi All,
>
> I need a script to rotate logs in /var/log/httpd for every two days.
> and i want to move the old logs to different location and then delete
> the logs . Please help in this i am using Redhat linux.

Use logrotate.

--
Secunia non olet.
Stanislaw Klekot
From: Bill Marcum on
On 2010-02-24, laxman <alakshmanrao(a)gmail.com> wrote:
> Hi All,
>
> I need a script to rotate logs in /var/log/httpd for every two days.
> and i want to move the old logs to different location and then delete
> the logs . Please help in this i am using Redhat linux.
>
> Thanks in Advance
> Lakshman.
>
yum install logrotate