Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 74133 invoked from network); 14 Feb 2010 14:49:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2010 14:49:52 -0000 Received: (qmail 79247 invoked by uid 500); 14 Feb 2010 14:49:52 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 78967 invoked by uid 500); 14 Feb 2010 14:49:51 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 78496 invoked by uid 99); 14 Feb 2010 14:49:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Feb 2010 14:49:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Feb 2010 14:49:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E42BE234C1F2 for ; Sun, 14 Feb 2010 06:49:27 -0800 (PST) Message-ID: <1353699247.263541266158967933.JavaMail.jira@brutus.apache.org> Date: Sun, 14 Feb 2010 14:49:27 +0000 (UTC) From: "Ari Rabkin (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Commented: (CHUKWA-454) DirTailingAdaptor Add option to Filter files. In-Reply-To: <1318994416.231981265977947905.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CHUKWA-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833573#action_12833573 ] Ari Rabkin commented on CHUKWA-454: ----------------------------------- This is something I was meaning to do, as well. If you have time, can you also put together one or more junit tests, to make sure this feature doesn't rot? They don't have to be super-sophisticated, I just want to make sure nobody breaks this inadvertently in development. > DirTailingAdaptor Add option to Filter files. > --------------------------------------------- > > Key: CHUKWA-454 > URL: https://issues.apache.org/jira/browse/CHUKWA-454 > Project: Hadoop Chukwa > Issue Type: New Feature > Components: data collection > Affects Versions: 0.4.0 > Reporter: Gerrit Jansen van Vuuren > Priority: Minor > Fix For: 0.4.0 > > Attachments: CHUKWA-454.patch > > > I would like to be able to point the DirTailingAdaptor at a directory but only have it tail files matching to a certain pattern. > So I've made a change that allows the adaptor to recieve an optional filter parameter and use the org.apache.commons.io.filefilter.WildcardFileFilter class to filter out files. > This allows you to for example point the adaptor at a tomcat log directory and not have it tail catalina.out logs etc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.