Derive Output FileName from Input File Name

asked 2020-01-10 09:56:53 -0600

ToddB gravatar image

updated 2020-01-10 14:07:38 -0600

metadaddy gravatar image

I'm using a directory origin sending accepting a CSV file format and sending its contents to a JDBC destination and then to a file output. The default Files Prefix is sdc-${sdc:id()}which produces the process id for the pipeline. I would like to use the input file name (i.e. /mnt/abc123/origin/newfile.csv) to create the output file (i.e. /mnt/abc123/destination/newfile-mm-dd-yy.csv). Looking for recommendations on how to do this.

Thanks in advance.

edit retag flag offensive close merge delete