[ 
https://issues.apache.org/jira/browse/FLUME-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashish Paliwal resolved FLUME-431.
----------------------------------
       Resolution: Won't Fix
    Fix Version/s: v0.9.5

Won't fix. 0.X branch not maintained anymore

> Add attribute with dir path to events produced by tailing sources
> -----------------------------------------------------------------
>
>                 Key: FLUME-431
>                 URL: https://issues.apache.org/jira/browse/FLUME-431
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: v0.9.4
>            Reporter: Alex Baranau
>            Priority: Minor
>             Fix For: v0.9.5
>
>
> Currently tailing sources (tail, taildir) add attribute with filename to 
> event. Looks like we should put dir names too, since this can be critical 
> info for event's processing logic.
> E.g. tailing collectD output - it outputs stats data into dirs like 
> /ubuntu904desktop.localdomain/cpu-0, /ubuntu904desktop.localdomain/cpu-1, 
> etc. Here, path info is important for logs processing logic and should be 
> available too.
> Jon's suggestion:
> My suggestion is to use a kwarg to make recording the dir a open, and to give 
> the user option to pick attribute name.
> So something like this:
> tailDir("/dir",".*", 0, dirAttr="tailfiledir", fileAttr="tailfilename")
> So a file /dir/file would produce events with metadata like:
> event { taildirfile="/dir", tailfilename="file" }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to