Return-Path: Delivered-To: apmail-hadoop-chukwa-user-archive@minotaur.apache.org Received: (qmail 45900 invoked from network); 27 Jan 2010 18:43:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 18:43:07 -0000 Received: (qmail 44639 invoked by uid 500); 27 Jan 2010 18:43:07 -0000 Delivered-To: apmail-hadoop-chukwa-user-archive@hadoop.apache.org Received: (qmail 44615 invoked by uid 500); 27 Jan 2010 18:43:07 -0000 Mailing-List: contact chukwa-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-user@hadoop.apache.org Delivered-To: mailing list chukwa-user@hadoop.apache.org Received: (qmail 44606 invoked by uid 99); 27 Jan 2010 18:43:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 18:43:07 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.145.54.172] (HELO mrout2.yahoo.com) (216.145.54.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 18:42:56 +0000 Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout2.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id o0RIgLH5029555 for ; Wed, 27 Jan 2010 10:42:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:x-originalarrivaltime; b=kmzV5vVRQ3rILW39MHZhLELkrB0hNE+oYgH7fSZfqnUnB7328SgdcL47Y17CUV/v Received: from SNV-EXVS06.ds.corp.yahoo.com ([207.126.227.234]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 27 Jan 2010 10:42:21 -0800 Received: from 10.72.111.153 ([10.72.111.153]) by SNV-EXVS06.ds.corp.yahoo.com ([207.126.227.82]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.59]) with Microsoft Exchange Server HTTP-DAV ; Wed, 27 Jan 2010 18:42:09 +0000 User-Agent: Microsoft-Entourage/12.23.0.091001 Date: Wed, 27 Jan 2010 10:42:07 -0800 Subject: Re: log rotation From: Eric Yang To: Message-ID: Thread-Topic: log rotation Thread-Index: AcqfgG0wZ6A8whx+j0WVjtIRnYq0+w== In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 27 Jan 2010 18:42:21.0475 (UTC) FILETIME=[75D11F30:01CA9F80] Hi Corbin, Chukwa is intended for your use case, but it's not perfect in term of functionality. There are two possible solutions to refine Chukwa to do what you need. First solution, extend UTF8 File Tailing Adaptor to delete the processed file, and use that to tail the apache log file. This method should be fairly easy to implement. Second solution, write an adaptor to receive log from named pipe, and configure Apache to pipe the log to a perl script which writes to the named pipe. This method is great for reducing disk load for the webserver. It is more tricky to get it right. Hope this helps. Regards, Eric On 1/27/10 10:18 AM, "Corbin Hoenes" wrote: > I've noticed some chatter about log rotation and FileTailingAdaptor: > http://issues.apache.org/jira/browse/CHUKWA-421 > > Is there some kind of documentation on how it deals with say a directory of > files that get rotated. At first glance it looks like it keeps an adaptor > open forever and there doesn't appear to be a way to know that a file has been > processed by the adaptor so we can't really move files out, etc... Right now > we are piping apache access logs through rotatelogs and then using chukwa to > tail these files. Is there a better way? > > >