Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2003 17:07:31 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-questions@freebsd.org
Subject:   Re: huge /var/log/exim files
Message-ID:  <20030806160731.GA54151@users.munk.nu>
In-Reply-To: <20030806165036.5856a8f7.john.REMOVE.ekins@brightview.com>
References:  <1060184521.11385.32.camel@lorax.forestry.umn.edu> <Pine.BSF.4.05.10308061142170.1659-100000@buffnet5.buffnet.net> <20030806165036.5856a8f7.john.REMOVE.ekins@brightview.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 06, 2003 at 04:50:36PM +0100, John Ekins wrote:
> 
> -- 
> On Wed, 6 Aug 2003 11:42:27 -0400 (EDT)
> Steve Hovey <shovey@buffnet.net> wrote:
> 
> -> 
> -> I do
> -> 
> -> cat /dev/null > mainlog
> -> 
> -> etc
> 
> Or how about exicyclog? It installed as part of exim. It is the "more
> subtle" way.
Or have exim write to dated logfiles:

log_file_path = /var/log/exim/%s.%D.log
(in /usr/local/etc/exim/configure)

ie:

[17:05:30] root@users /home# ls -l /var/log/exim/
<snip>
-rw-r-----  1 mailnull  mail  101766 Aug  5 23:59 main.20030805.log
-rw-r-----  1 mailnull  mail  126424 Aug  6 17:02 main.20030806.log

That way you can just remove the older logfiles (once you've backed up
first of course!).

-- 
Jez

http://www.munk.nu/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030806160731.GA54151>