keedio / flume-ftp-source

FTP network server is source of events for Apache-flume
80 stars 61 forks source link

is there any way to put file's name into event headers? #27

Closed ghost closed 7 years ago

ghost commented 7 years ago

I want to know the files name in event process, is there any way to put the file's name into event headers?

lazaromedina commented 7 years ago

Such a feature is not implemented. You can: 1) use Apache Flume Interceptor 2) pull request and modify source code to you needs, for example: headers.put("filename") in processMessage. regards

ghost commented 7 years ago

but how can i get the filename in processMessage methods?