Log Files
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > Log Files




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Log Files  
zpyoung


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-05 01:46 AM

With in the /var/log directory how does the log files get removed?  Does
some kind of cron script remove them.

Thanks

zpyoung







[ Post a follow-up to this message ]



    Re: Log Files  
Jean-David Beyer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-10-05 07:45 AM

zpyoung wrote:
> With in the /var/log directory how does the log files get removed?  Does
>  some kind of cron script remove them.
>
logrotate rotates them, and the oldest ones fall off the edge of the earth.

E.g.,

/var/log/messages.4 falls of the edge of the earth
/var/log/messages.3 becomes /var/log/messages.4
/var/log/messages.2 becomes /var/log/messages.3
/var/log/messages.1 becomes /var/log/messages.2
/var/log/messages   becomes /var/log/messages.1
then a new /var/log/messages is created.
There is nothing magic about the "4", but that is how it is usually set in
Red Hat distributions.

A cron script does run them. Look in /etc/cron.daily for _logrotate_
and do

man logrotate

--
.~.  Jean-David Beyer          Registered Linux User 85642.
/V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
/( )\ Shrewsbury, New Jersey    http://counter.li.org
^^-^^ 23:30:00 up 86 days, 17:26, 3 users, load average: 4.12, 4.22, 4.32





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register