Return-Path: X-Original-To: apmail-incubator-chukwa-user-archive@www.apache.org Delivered-To: apmail-incubator-chukwa-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D66798A5 for ; Fri, 9 Mar 2012 06:18:57 +0000 (UTC) Received: (qmail 32829 invoked by uid 500); 9 Mar 2012 06:18:57 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 32554 invoked by uid 500); 9 Mar 2012 06:18:51 -0000 Mailing-List: contact chukwa-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-user@incubator.apache.org Delivered-To: mailing list chukwa-user@incubator.apache.org Received: (qmail 32528 invoked by uid 99); 9 Mar 2012 06:18:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:18:50 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ivytang0812@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 06:18:42 +0000 Received: by lagw12 with SMTP id w12so1369807lag.6 for ; Thu, 08 Mar 2012 22:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=haXjhQbKitQlX5tU+bRISpqHiWxafsqwmDB04RU1bXA=; b=bV8RIdywlNd7Kc11DhATcVNkSI561fwTarA5AtiGMQ8MhCnG8X0qJUrp/PhklJ/2xP //KBmEW5bpZPZO9v/P2leCSz6fCVLjTgpmc+9lxs+Coqs/5wboc+wZlpfQK3YF0vJwY5 9Z6uaANe5ciQPOYf0ikDrxR3KbmKXf+w7bf7slmwuRKdOCwf9RYWrMQqd1BIuFEhuHg7 Ui6kfdeFGOE5ej/ZtgQsvBFkiwt6bKgxAIKoV8xM1WL1G5JJpl2qWmdBv6zl6P0EOxwD jR3Ay06PpQurtdXj7sXBSMBULF0GJgIc+UGKZgsR/qkOpA9phNPey8Nt+KBaSm4xRTVS YYOA== Received: by 10.112.43.106 with SMTP id v10mr393547lbl.2.1331273902234; Thu, 08 Mar 2012 22:18:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.106.104 with HTTP; Thu, 8 Mar 2012 22:18:02 -0800 (PST) From: IvyTang Date: Fri, 9 Mar 2012 14:18:02 +0800 Message-ID: Subject: How chuwka identity the tailing log generated by java log4j? To: chukwa-user Content-Type: multipart/alternative; boundary=e0cb4efe2a340a9c9304bac95c6a X-Virus-Checked: Checked by ClamAV on apache.org --e0cb4efe2a340a9c9304bac95c6a Content-Type: text/plain; charset=ISO-8859-1 I want to use chuwka to collect the log generated by java log4j. The log file has the size limition ,when the size reaches to 200M , the log4j will rename this file to .1 and renew a log file. If chukwa is tailing the current log , and the log size reaches to 200M but the chukwa just collect < 200M . And the the log is renamed , a new log file is generated. I thought this log will miss , the chukwa will read the new log .But i found the chukwa adaptor file offset doesn't change to 0 . How chukwa handle this situation? thx -- Best regards, Ivy Tang --e0cb4efe2a340a9c9304bac95c6a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I want to use chuwka to collect the log=A0generated by java log4j.

=
The log file has the size limition ,when the size reaches to 200M , th= e log4j will rename this file to .1 and renew a log file.

If chukwa is tailing the current log , and the log size reaches to 200= M but the chukwa just collect < 200M . And the the log is renamed , a ne= w log file is generated.

I thought this log will m= iss , the chukwa will read the new log .But i found the chukwa adaptor file= offset doesn't change to 0 .

How chukwa handle this=A0situation?

thx

--
Best regards,

Ivy Tang



--e0cb4efe2a340a9c9304bac95c6a--