Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2829

Taildir Source doesn't populate Filename

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • Sinks+Sources
    • None

    Description

      JIRA issue FLUME-2498 mentions taildir source should be able to populate Filename key in the header, however, this doesn't seem to be available yet.

      Moreover, given the near certainty of taildir sources being used to tail dynamic filenames such as $hostname-$year-$month-$day.log it would be great to expose the regex groups to the generated headers in a fashion similar to the Regex Extractor Interceptor:

      a1.sources.r1.filegroups.f1 = /path/to/my/logfile/([^-]+)-([^-]+)-([^-]+)-([^-]+).log
      a1.sources.r1.filegroups.f1.regexgroups = s1 s2 s3 s4
      a1.sources.r1.filegroups.f1.regexgroups.s1.header = hostname
      a1.sources.r1.filegroups.f1.regexgroups.s2.header = year
      a1.sources.r1.filegroups.f1.regexgroups.s3.header = month
      a1.sources.r1.filegroups.f1.regexgroups.s4.header = day
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            trixpan Andre F de Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: