Fluentd record with source filename parts -
i'm using fluentd on server export logs.
my configuration uses capture several log files:
<source> type tail path /my/path/to/file/*/*.log </source> the different files tracked properly, however, have 1 more feature needed:
the 2 wildcards parts of path should added record (let's call them directory , filename).
if in_tail plugin add filename record, write formatter split , edit.
anything i'm missing or rewriting in_tail heart wishes best way go?
so, yes. extending in_tail way go.
i've written new plugin inherits newtailinput , uses different parse_singleline , parse_multilines add path record.
much better expected.
Comments
Post a Comment