Re: Syslog file size

From: Boaz Rymland (boazr_at_nonexisting.hamakor.org.il)
Date: Wed 30 Apr 2003 - 13:44:05 IDT


Hmm... my logrotate can rotate based on size too.

It's version is 3.5.9-8.

This is part of what the man page has to say about this:

---
 size size[M|k]
              Log files are rotated when they grow bigger than size 
bytes. If size is  fol­
              lowed  by  M, the size is assumed to be in megabytes.  If 
k is used, the size
              is in kilobytes. So size 100, size 100k, and size 100M are 
all valid.
---
I think this still needs to be started through a cron job.
Boaz.
Ira Abramov wrote:
>Quoting Ran Milstein, from the post of Wed, 30 Apr:
>  
>
>>Hi,
>>Does anybody know how can limit the file size created by the syslog server ?
>>    
>>
>
>Logrotate will rotate it at certain times, not sizes. you can chang the
>times to get a nice average.
>
>to get logs rotated based on size you need a syslog that rotates by
>itself, and AFAIR there are a few of those out there, GFI.
>
>  
>
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il


This archive was generated by hypermail 2.1.7 : Mon 06 Oct 2003 - 23:44:27 IST