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 8EDBF178EE for ; Thu, 16 Oct 2014 04:52:31 +0000 (UTC) Received: (qmail 54614 invoked by uid 500); 16 Oct 2014 04:52:31 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 54559 invoked by uid 500); 16 Oct 2014 04: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 54548 invoked by uid 99); 16 Oct 2014 04:52:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 04:52:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jlord@cloudera.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qc0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 04:52:26 +0000 Received: by mail-qc0-f178.google.com with SMTP id c9so2229496qcz.9 for ; Wed, 15 Oct 2014 21:52:06 -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=e2iVzD89NaefnMPo9BFRuWmcfEN52ejPAPiC/8sZRV4=; b=B8R8HdCAFTVXNrq3dDX00srbBWepvZzqf70faoSomsO5eFfjJU/nzb2iNipK/oJzcy 1UF80MryfdudE+gpe2Gie9DAervzFhWbNNaZQfX8sV+O5BezHjaBTWjrt85WVLRTm/ma bHiuMFP4KZgnfha4rRsMSxwza8zgAd3TDHReE25U+0i2gLezSqY3s5S40+wkiZOIYgax wyEXcjy2l/zPJevj39njCE85HQs6CRcfl1wID9CcYx7RZksdOEpXUVhAE7re7+koN4RG 15kbs2NLGpAX/uSnM5kiKbF4i0pXfLuV9ufQAJumix25E6Cz8bek2HuC6+Jhc+ITEZZn WfTA== X-Gm-Message-State: ALoCoQktgaOMOXcy5yEjRra17K5SzlM7TSZYSnIOcROnK+sMS1/cNbeR3BQRbUzfke8VuOaQFKav MIME-Version: 1.0 X-Received: by 10.140.25.167 with SMTP id 36mr4391275qgt.56.1413435126134; Wed, 15 Oct 2014 21:52:06 -0700 (PDT) Received: by 10.140.40.6 with HTTP; Wed, 15 Oct 2014 21:52:06 -0700 (PDT) In-Reply-To: <1413434829172.0ad74266@Nodemailer> References: <1413434829172.0ad74266@Nodemailer> Date: Wed, 15 Oct 2014 21:52:06 -0700 Message-ID: Subject: Re: Flume Syslog source From: Jeff Lord To: "user@flume.apache.org" Content-Type: multipart/alternative; boundary=001a11c12e649b6d1405058302a7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c12e649b6d1405058302a7 Content-Type: text/plain; charset=UTF-8 You can also use a regex interceptor to extract hostname from the message (assuming it's there) and put that in an event header. From there you can route and create partitions with the header. On Wednesday, October 15, 2014, Hari Shreedharan wrote: > The Multiport syslog source can add the port number on which the data was > received to the event headers. You can use with a multiplexing channel > selector to separate this to different channels. > > Thanks, > Hari > > > On Wed, Oct 15, 2014 at 9:45 PM, Sharninder > wrote: > >> Hi Guys, >> >> I'm trying to implement a system to archive syslogs using flume. I've >> played around with it a bit but haven't really been able to figure out a >> way to segregate logs according to the host they're coming from? Is there a >> way for me to add the hostname to the event header somehow? I can then use >> either an interceptor to read the header or even a custom sink to deal with >> events based on the hostname. >> >> -- >> Sharninder >> >> > --001a11c12e649b6d1405058302a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can also use a regex interceptor to extract hostname from the message (= assuming it's there) and put that in an event header. From there you ca= n route and create partitions with the header.

On Wedne= sday, October 15, 2014, Hari Shreedharan <hshreedharan@cloudera.com> wrote:
The Multiport syslog source can add the port number on which the= data was received to the event headers. You can use with a multiplexing ch= annel selector to separate this to different channels.

Thanks,
Hari



--001a11c12e649b6d1405058302a7--