On Thu, 2002-06-06 at 16:24, Alex Judd wrote:
> Has anyone looked into making the logging in Kannel (at file level at least)
> a little more intelligent than it is at the moment? Currently even in info
> mode it generates fairly large logs which require continued sorting.
> 
> One suggestion I thought was to adopt the Apache Jakarta project format of
> rolling the logs over every 24 hours into a new dated version so that at
> least this way they are in more maneageable chunks.
> 
> I'm yet to play with the mySQL installation of logging however to the best
> of my knowledge this doesn't do this either.
> 
> Alex
> 
> ---
> http://www.skywire.co.uk/
> 
> 

/home/kannel/var/log/bearerbox_access.log {
    daily
    rotate 9999
    compress
    delaycompress
    postrotate
        killall -HUP bearerbox
    endscript
}

/home/kannel/var/log/bearerbox_error.log \
/home/kannel/var/log/smsbox_access.log \
/home/kannel/var/log/smsbox_error.log {
    daily
    rotate 15
    compress
    delaycompress
    postrotate
        killall -HUP bearerbox smsbox
    endscript
}

Add this to your logrotate.conf (or /etc/logrotate.d/kannel.conf)

I'm saving every bearerbox_access.log and 15 days of the others.


Reply via email to