Rotation of logs

  • Follow


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.

0
Reply laxman 2/24/2010 6:49:56 AM

On 2010-02-24, laxman <alakshmanrao@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

0
Reply Bill 2/24/2010 7:37:00 AM


On 2010-02-24, laxman <alakshmanrao@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
0
Reply Stachu 2/24/2010 7:37:04 AM

2 Replies
349 Views

(page loaded in 0.058 seconds)

Similiar Articles:













7/26/2012 2:58:26 PM


Reply: