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 1NAMsF-0001bx-7t for garchives@archives.gentoo.org; Tue, 17 Nov 2009 12:09:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 964CBE0980; Tue, 17 Nov 2009 12:08:21 +0000 (UTC) Received: from mail.caf.com.tr (mail.caf.com.tr [88.250.85.68]) by pigeon.gentoo.org (Postfix) with ESMTP id 4CAC9E0980 for ; Tue, 17 Nov 2009 12:08:21 +0000 (UTC) Received: from localhost (sunny.caf.com.tr [127.0.0.1]) by mail.caf.com.tr (Postfix) with ESMTP id 404FC39E36B for ; Tue, 17 Nov 2009 12:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=caf.com.tr; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=originating; t= 1258459698; bh=UGHYxWU9E0XRmZ9Y30Ycdv2UIDtqV++AJfUNkq6w4Is=; b=m EiUA4xdg35e/y349oopX4LQUJcrkziCXAptxeA/Bc2zCCCWMXkKl+Y6Tem2J9js3 NLvhlMbl21tat+fF0RXOBtQaKp/FY6U3V7mrXVXnAkxZfPus13e2ENjYpqv8G1C8 2qqBSoOA+PbhzzTJNqoFRwNFAUdcRJrJsEE/3/nYdo= X-Virus-Scanned: amavisd-new at caf.com.tr Received: from mail.caf.com.tr ([127.0.0.1]) by localhost (sunny.caf.com.tr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QevoWKHQJjWh for ; Tue, 17 Nov 2009 12:08:18 +0000 (UTC) Received: from [10.0.0.14] (unknown [10.0.0.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eray.aslan@zeplin.net) by mail.caf.com.tr (Postfix) with ESMTPSA id DBB7339E350 for ; Tue, 17 Nov 2009 12:08:18 +0000 (UTC) Message-ID: <4B029220.9090400@caf.com.tr> Date: Tue, 17 Nov 2009 14:08:00 +0200 From: Eray Aslan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] strange cron messages... References: <4AFEB84B.2010107@gmail.com> <200911141753.24403.wonko@wonkology.org> <200911151145.28867.michaelkintzios@gmail.com> <4B00F9AE.8010209@caf.com.tr> <20091116124606.055ceff5@digimed.co.uk> <4B017607.80102@caf.com.tr> <20091117085934.3f89e8a4@digimed.co.uk> In-Reply-To: <20091117085934.3f89e8a4@digimed.co.uk> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 7c297e26-df7b-4bac-9a30-661effea8227 X-Archives-Hash: 4fc91ce62928f2c889c1659c86c3f2f1 On 17.11.2009 10:59, Neil Bothwick wrote: >>> 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? > > I didn't miss it. My question was how to you get the process to USE the > new file. Unless you SIGHUP the process, it will continue using the > config in pace when it started. Last sentence is correct. What you are missing is that the config says to start a new file each day/hour/etc. syslog-ng does not evaluate the file() expression once at startup and then treat it as a constant. # ls /var/log/HOSTS/north/|tail -n5 north.2009.07.log.gz north.2009.08.log.gz north.2009.09.log.gz north.2009.10.log.gz north.2009.11.log There was no SIGHUP involved. >>> 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. > > You wouldn't miss a log messsage by sending a SIGHUP to your mail server, > the logger woulsd keep running. When syslog-ng cannot process messages for whatever reason, it will buffer them. When the buffer is full, it will drop the messages. There is no need to add to the load and increase message loss probability with SIGHUP (think of a central log server). -- Eray