From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NA7mM-00032N-F7 for garchives@archives.gentoo.org; Mon, 16 Nov 2009 20:02:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F532E0A0B for ; Mon, 16 Nov 2009 20:02:25 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by pigeon.gentoo.org (Postfix) with ESMTP id 8F2B4E0772 for ; Mon, 16 Nov 2009 18:05:46 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so2729636fga.10 for ; Mon, 16 Nov 2009 10:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=FFZLcw2g14lUlLaJR0JOFYgz5RSrqZPrs6IScUTgTIk=; b=BFE3jg6OPaKY80857Kj9xCU6hYeTI9JeATizgW+hb1+vGi8qsbIT6mqbFbUlOYs2QS NLQcKN+OMiPh9iWncpMYp43JQmV0xj2LbEJxsoiS2BRXmj3BoEg3bM2bM102ZS2r9PCf fUAEaV7nxd7+J5enmwPN4XhvtGVaiMI2G1/VQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=E6VvR82mQfnzFUW7TCLxPL2iZQo8HepGG830aRbqfzlnwoDyjoHK3QyFxMM8jZZkr0 ci/Lns6M0iKTq1Ip+pP18t8nNH7KKbFbTPMBRqDLBLCLqYmj2BsE9/yrwmuXXZu6on6A GGLdja9Pgl+M1gqE5QhIdGDjB60SrLEyH6hXE= Received: by 10.103.87.35 with SMTP id p35mr3796275mul.75.1258394745948; Mon, 16 Nov 2009 10:05:45 -0800 (PST) Received: from nazgul.localnet (196-210-153-114-rrdg-esr-2.dynamic.isadsl.co.za [196.210.153.114]) by mx.google.com with ESMTPS id 14sm17317528muo.45.2009.11.16.10.05.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Nov 2009 10:05:44 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] strange cron messages... Date: Mon, 16 Nov 2009 20:04:42 +0200 User-Agent: KMail/1.12.90 (Linux/2.6.31-zen7; KDE/4.3.75; x86_64; ; ) References: <4AFEB84B.2010107@gmail.com> <20091116124606.055ceff5@digimed.co.uk> <4B017607.80102@caf.com.tr> In-Reply-To: <4B017607.80102@caf.com.tr> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911162004.42321.alan.mckinnon@gmail.com> X-Archives-Salt: 6380cc04-d3b8-498f-a0a2-6c50db1b08a1 X-Archives-Hash: 733a049ec979bc7345e6651b7c70b185 On Monday 16 November 2009 17:55:51 Eray Aslan wrote: > On 16.11.2009 14:46, Neil Bothwick wrote: > > On Mon, 16 Nov 2009 09:05:18 +0200, Eray Aslan wrote: > >> - No need to logrotate with time based filenames. Hence, no need to > >> "kill -HUP" the syslog daemon. No missed logs. > > > > Then how do you get the server to use the new logfile names each > > day/week? > > It creates and uses a new file each hour/day/etc. Perhaps, you missed > the file(...) directive? Reposting for your reference: > > destination mail { > file("/var/log/mail/$YEAR/$MONTH/$DAY/$HOUR" > [...] > > > You only need to send a SIGHUP to the server using that log > > facility, so syslog would not be affected in your example. > > I can't parse this. The point is avoiding SIGHUP so that we do not miss > any log messages. > > OP asked how one manages log files without logrotate and the answer is > with time based file names. It has the additional benefit of avoiding > SIGHUP. > I have three machines that randomly kill syslog or syslog-ng as appropriate whenever they feel like it on daily rotates. There's no warning, no evidence, they just ... die. 5 minutes later nagios goes ballistic and I have work to do. That all three are SuSE machines is probably highly relevant. So, anything that syslog-ng can do itself without needing external intervention is a very good thing. I can then compress and move the closed files around later at my leisure in complete safety. -- alan dot mckinnon at gmail dot com