Return-Path: X-Original-To: apmail-flume-user-archive@www.apache.org Delivered-To: apmail-flume-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 38BF917518 for ; Tue, 14 Apr 2015 16:52:32 +0000 (UTC) Received: (qmail 34545 invoked by uid 500); 14 Apr 2015 16:52:31 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 34490 invoked by uid 500); 14 Apr 2015 16:52:31 -0000 Mailing-List: contact user-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flume.apache.org Delivered-To: mailing list user@flume.apache.org Received: (qmail 34480 invoked by uid 99); 14 Apr 2015 16:52:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 16:52:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gshapira@cloudera.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-wi0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 16:52:24 +0000 Received: by wiax7 with SMTP id x7so93092079wia.0 for ; Tue, 14 Apr 2015 09:52:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=HY1YGImaGZD2fwtgwoFJhZKOWpyhugpIjQYzp2A2YAc=; b=f/LOrqdHmlyo31dn9Cxut9D07D49w8zz7EkpxFeqxHGOdS86sn6JsMgHkOGpbGWVWD rmGDquuAFA10O0rzqszMpraeaL+5rrkZMnE393TFPjij2/JF3DCBie9/UNrEpla4GouN QfQdCoD2d+UvgiSCEz/eFVbP50QMFW0ZdMHVyIlC3JWQEb/YCoFlBCZx1iApI/3Szk/H /Gj/tZR8go73VuQLJZlSfPDhra8JwN4hSGqRBc858afbK3WFhSnZV9cPL/LFLq18kYHI wD7y89BxM0gjw6w4grEj2+ua5vzBX+CYVIuYV1XL8iTM610smUp6PednhaHVy7Gd04kf 0cYw== X-Gm-Message-State: ALoCoQnpMSzHNwK83jXbVruBai2LAJWO5v5jlSMqyRPXmbSKruDck5BZo9VoTGU96oq9g+JV9O0d MIME-Version: 1.0 X-Received: by 10.180.97.164 with SMTP id eb4mr34739202wib.3.1429030323559; Tue, 14 Apr 2015 09:52:03 -0700 (PDT) Received: by 10.27.139.212 with HTTP; Tue, 14 Apr 2015 09:52:03 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Apr 2015 09:52:03 -0700 Message-ID: Subject: Re: [KafkaSource] Write timestamp in the header From: Gwen Shapira To: user@flume.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Are you sure KafkaSource does that? Or do you have an Interceptor? On Tue, Apr 14, 2015 at 9:50 AM, Tao Li wrote: > Hi all: > > I found that KafkaSource will put "System.currentTimeMillis()" as > "timestamp" field in header. If we use HDFSEventSink, the HDFS log can be > rotate by the timestamp. > > But the web server log usually contains "timestamp" string, and it indicate > the true timestamp, other than "System.currentTimeMillis()". So I think if > have a feature to allow to customarize the "timestamp" field, will be > better.