Re: system logs management

1999-12-06 Thread J C Lawrence
On Sun, 5 Dec 99 20:33:06 GMT 
John  <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
--(*)  Other: [EMAIL PROTECTED]
--=| A man is as sane as he is dangerous to his environment |=--


system logs management

1999-12-05 Thread John
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.

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.

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

Grateful for any help or pointers.

Regards,
John.