Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 554E9200C1E for ; Fri, 17 Feb 2017 12:24:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53E32160B55; Fri, 17 Feb 2017 11:24:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9DF8F160B3F for ; Fri, 17 Feb 2017 12:24:47 +0100 (CET) Received: (qmail 48481 invoked by uid 500); 17 Feb 2017 11:24:46 -0000 Mailing-List: contact dev-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list dev@flume.apache.org Received: (qmail 48469 invoked by uid 99); 17 Feb 2017 11:24:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2017 11:24:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 39CC7C002D for ; Fri, 17 Feb 2017 11:24:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 4jFiKjotZq7T for ; Fri, 17 Feb 2017 11:24:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3FBA55F3FF for ; Fri, 17 Feb 2017 11:24:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 914E5E0410 for ; Fri, 17 Feb 2017 11:24:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AF3BC2411F for ; Fri, 17 Feb 2017 11:24:41 +0000 (UTC) Date: Fri, 17 Feb 2017 11:24:41 +0000 (UTC) From: "tinawenqiao (JIRA)" To: dev@flume.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLUME-2961) Make TaildirSource work with multiline MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Feb 2017 11:24:48 -0000 [ https://issues.apache.org/jira/browse/FLUME-2961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871703#comment-15871703 ] tinawenqiao commented on FLUME-2961: ------------------------------------ In FLUME-2961_2.patch add some configurations about multiline. multiline: Whether to support joining of multiline messages into a single flume event. multilinePattern: Regexp which matches the start or the end of an event consisting of multilines. multilinePatternBelong: Indicate the pattern belongs to the next or previous event. Value can be {'previous','next'}. multilineMatched: Whether to match the pattern. If 'false', a message not matching the pattern will be combined with the previous or the next line. multilineEventTimeoutSeconds: Maximum seconds before an event automatically be flushed. Default value 0 means never time out. multilineMaxBytes: If the length of multiline event bytes exceeds this value, the event will be flushed. Default value 10MB. It's used in combination multilineMaxLines. multilineMaxLines :If the lines of multiline event exceeds this value, the event will be flushed. Default value 500. It's used in combination multilineMaxBytes. > Make TaildirSource work with multiline > -------------------------------------- > > Key: FLUME-2961 > URL: https://issues.apache.org/jira/browse/FLUME-2961 > Project: Flume > Issue Type: Improvement > Components: Sinks+Sources > Affects Versions: v1.7.0 > Reporter: tinawenqiao > Assignee: tinawenqiao > Fix For: v1.8.0 > > Attachments: FLUME-2961_1.patch > > > TaidirSource defaults to LINE, this has issue when multiline log events like stack traces and have request/responses. Following part is Java traceback logs. We expect to have log line start regex Key to aggregate all the log lines till the next regex key is found. > 2016-07-16 14:59:43,956 ERROR lifecycleSupervisor-1-7 LifecycleSupervisor.run - Unable to start EventDrivenSourceRunner: { source:cn.yottabyte.flume.source.http.HTTPSource{name:sourceHttp,state:IDLE} } - Exception follows. > java.lang.IllegalStateException: Running HTTP Server found in source: sourceHttp before I started one. Will not attempt to start. > at com.google.common.base.Preconditions.checkState(Preconditions.java:145) > at cn.yottabyte.flume.source.http.HTTPSource.startHttpSourceServer(HTTPSource.java:170) > at cn.yottabyte.flume.source.http.HTTPSource.start(HTTPSource.java:166) > at org.apache.flume.source.EventDrivenSourceRunner.start(EventDrivenSourceRunner.java:44) > at org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.3.15#6346)