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

Allow SpoolDir to pass just the filename that is the source of an event

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently we allow for passing of the absolute path.
      It would be nice to just pass the filename in the event headers and allow for using that on the hdfs sink.

      if (annotateFileName) {
      String filename = currentFile.get().getFile().getAbsolutePath();
      for (Event event : events)

      { event.getHeaders().put(fileNameHeader, filename); }

      }

        Attachments

        1. FLUME-2056.0.patch
          11 kB
          Jeff Lord
        2. FLUME-2056-1.patch
          11 kB
          Jeff Lord

          Issue Links

            Activity

              People

              • Assignee:
                jlord Jeff Lord
                Reporter:
                jlord Jeff Lord
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: