[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system logs management



On Sun, 5 Dec 99 20:33:06 GMT 
John  <joney@clara.net> wrote:

> What steps do users take to keep logs down to reasonable sizes?  I
> have seen nothing on this aspect of management and so have been
> using 'rm' and then creating a new file.

Look into the logrotate package.

> If it is possible, I would like to remove everything older than
> say seven days on a twice monthly basis after checking there is
> nothing I would like to archive for possible future reference.

This is possible with logrotate.

> I haven't yet found a command to empty a file as opposed to
> removing it - does one exist?

# > file

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--


Reply to: