[
https://issues.apache.org/jira/browse/FLUME-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashish Paliwal resolved FLUME-1042.
-----------------------------------
Resolution: Won't Fix
Fix Version/s: v0.9.5
Won't fix. 0.X branch not maintained anymore
> Improve delim / delimMode used by tail and tailDir to allow inclusion or
> exclusion of part of the delimiter
> -----------------------------------------------------------------------------------------------------------
>
> Key: FLUME-1042
> URL: https://issues.apache.org/jira/browse/FLUME-1042
> Project: Flume
> Issue Type: Improvement
> Components: Sinks+Sources
> Affects Versions: v0.9.4
> Reporter: Steve Stogner
> Priority: Minor
> Fix For: v0.9.5
>
>
> I want stack dumps in a log file sent as a single event to a collector.
> From the user manual:
> {quote}
> Finally, this example tails a file and uses the regex "\n\d\d\d\d" as a
> delimiter and appends the delimiter to the next event. This could be used to
> gather lines from a stack dump in a log file that starts with four digits
> (like a year from a date stamp).
> {noformat}
> tail("file", delim="\\n\\d\\d\\d\\d", delimMode="next")
> {noformat}
> {quote}
> The output using the configuration above includes the entire delimiter,
> including the newline. However, I want the date stamp part of the delimiter
> to be included in the output, but the newline part of the delimiter to be
> excluded from the output. Perhaps the delim and delimMode properties could be
> enhanced to allow users to include or exclude parts of the delimiter based on
> matching groups in the regex.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)