spring cloud dataflow sftp source starter app states that file name should be in the headers (mode=contents
). However, when I connect this source to a log sink, I see a few headers (like Content-Type
) but not the file_name
header. I want to use this header to upload the file to S3 with the same name.
spring server: Spring Cloud Data Flow Local Server (v1.2.3.RELEASE)
my apps are all imported from here
stream definition:
stream create --definition "sftp --remote-dir=/incoming --username=myuser --password=mypwd --host=myftp.company.io --mode=contents --filename-pattern=preloaded_file_2017_ --allow-unknown-keys=true | log" --name test_sftp_log
configuring the log application to --expression=#root --level=debug
doesn't make any difference. Also, writing my own sink that tries to access the file_name
header I get an error message that such header does not exist
logs snippets from the source and sink are in this gist