From owner-freebsd-questions Tue Jul 10 2:30:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by hub.freebsd.org (Postfix) with ESMTP id 7886337B40A for ; Tue, 10 Jul 2001 02:30:26 -0700 (PDT) (envelope-from simon.g@claycrossbs.co.uk) Received: from claycross.demon.co.uk ([194.222.107.197] helo=netadm) by anchor-post-32.mail.demon.net with smtp (Exim 2.12 #1) id 15Jtqb-00098p-0W; Tue, 10 Jul 2001 10:30:25 +0100 From: "Simon Griffiths" To: "Jon Molin" Cc: Subject: RE: /var/log/messages fills up Date: Tue, 10 Jul 2001 10:30:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <3B4AC2FE.7D58AD03@resfeber.se> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, > From: owner-freebsd-questions@FreeBSD.ORG > Subject: /var/log/messages fills up > Hello list, > [snip] > and apperently writing this about 1000 times/sec so the file filled the > fs (i know i should have had a /var slice) and therefor it started > adding that to the log as well so i had a 2.9 G large messagefile. > > Is there anyway to avoid this? One way could be to make a cronjob that > monitors the log but there should be better way, or? > Yea, you could use /etc/newsyslog.conf to configure how big you want the the file to grow to and how many times to rotate the file. This would give a performance hit though when dealing with situation like this but at least you should be able to limit the damage. See newsyslog(8) for a full description of howto configure this system. > > /jon HTH, Si. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message