Michael, Are you using 0.3.0? If so, the functionality you are looking for is absent from that version. That requested functionality is what led to https://issues.apache.org/jira/browse/NIFI-673 and the introduction of List/FetchSFTP.
I am not sure I have any good suggestions for 0.3.0 to achieve this other than performing pulls at certain intervals, keeping the source files, and then defeating the files that do not match that pattern via a RouteOnAttribute. I shall other folks chime in if they have any other ideas that are more efficient. On Mon, Nov 23, 2015 at 12:20 PM, Michael Dyer <[email protected]> wrote: > I am attempting to configure a GetSFTP processor to retrieve a single file > for 'yesterday'. I do not have any control over what is located in the > remote file system and I definitely don't want to pull everything. > > I have not been able to find a way to target the single file using a > dynamically generated name. > > Initially, I thought I would be able to make use of the following NiFi > Expression: > /opt/logs/${now():toNumber():minus(86400000):format('ddMMyyyy')}.txt > > However, I haven't been able to figure out a spot where I can plug in the > expression. The 'Remote Path' field accepts an expression, but appears to > be limited to path only and will not select for a full path/filename. > > The next approach was to specify a 'File Filter Regex', but NiFi > expressions are not supported. > > Is there a way to pre-calculate the filename for use by the file filter > regex? > > Thanks! > > Michael > > >
