Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi ListSFTP cash duration

avatar
Explorer

Hi,

 

I want to set the cash duration for listSftp to be 40 days,  I want to clear cash every 40 days

is there a way to log the met-data of the listed file for example file name and reading timestamp and query the listed file?

1 REPLY 1

avatar
Super Mentor

@memad 
ListSFTP does not actually fetch the content of any files from the target SFTP server.  You would need a FetchSFTP processor after listSFTP to do that.   The ListSFTP processor results in FlowFile(s) with metadata about the the listed file from the SFTP processor.  This metadata is then used by the downstream FetchSFTP processor to retrieve the actual content for each FlowFile.

The documentation for the ListSFTP processor covers the attributes that are written to the FlowFile(s):
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.19.1/org.apach...

This metadata is present on the FlowFile as FlowFile attributes, and you can manipulate and do anything you like with this metadata.

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt