huge /var/log/exim files
/var is full, and I see that /var/log/exim files are huge [EMAIL PROTECTED]:230 pwd /var/log/exim [EMAIL PROTECTED]:231 ls -lh total 172088 -rw-r- 1 mailnull mail 102M Aug 6 10:32 mainlog -rw-r- 1 mailnull mail 6.8K Aug 5 03:01 paniclog -rw-r- 1 mailnull mail66M Aug 5 16:00 rejectlog My question is this: If I rm mainlog and reject log, will they be built again or is there a more subtle way to do this? Thanks, Kirk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: huge /var/log/exim files
I do cat /dev/null mainlog etc On 6 Aug 2003, Kirk R. Wythers wrote: /var is full, and I see that /var/log/exim files are huge [EMAIL PROTECTED]:230 pwd /var/log/exim [EMAIL PROTECTED]:231 ls -lh total 172088 -rw-r- 1 mailnull mail 102M Aug 6 10:32 mainlog -rw-r- 1 mailnull mail 6.8K Aug 5 03:01 paniclog -rw-r- 1 mailnull mail66M Aug 5 16:00 rejectlog My question is this: If I rm mainlog and reject log, will they be built again or is there a more subtle way to do this? Thanks, Kirk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: huge /var/log/exim files
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 [EMAIL PROTECTED] 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] [EMAIL PROTECTED] /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/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: huge /var/log/exim files
On Wed, Aug 06, 2003 at 10:42:01AM -0500, Kirk R. Wythers wrote: /var is full, and I see that /var/log/exim files are huge [EMAIL PROTECTED]:230 pwd /var/log/exim [EMAIL PROTECTED]:231 ls -lh total 172088 -rw-r- 1 mailnull mail 102M Aug 6 10:32 mainlog -rw-r- 1 mailnull mail 6.8K Aug 5 03:01 paniclog -rw-r- 1 mailnull mail66M Aug 5 16:00 rejectlog My question is this: If I rm mainlog and reject log, will they be built again or is there a more subtle way to do this? Thanks, Kirk man newsyslog Newsyslog allows you to configure automatic rotation of log files. It's run automatically from cron every few minutes. For my Exim logs, I have the following in /etc/newsyslog.conf: /var/log/exim/mainlog mailnull:mail 640 7 *$D0 Z /var/log/exim/rejectlog mailnull:mail 640 7 *$D0 Z This means that the mainlog and rejectlog will be rotated every day at midnight ($D0), the old logs will be compressed (Z), and 7 older versions of each log will be kept. Although I notice that it actually seems to be keeping 8... Anyway, you can also set the permissions and ownership of the logs as I've done here. It's also possible to send a signal to a process to tell it to re-open its logs, but this isn't necessary with Exim. HTH, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: huge /var/log/exim files
-- On Wed, 6 Aug 2003 11:42:27 -0400 (EDT) Steve Hovey [EMAIL PROTECTED] wrote: - - I do - - cat /dev/null mainlog - - etc Or how about exicyclog? It installed as part of exim. It is the more subtle way. [snipped] - My question is this: If I rm mainlog and reject log, will they be built - again or is there a more subtle way to do this? - - Thanks, - - Kirk Cheers, John. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]