- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Get Filename with current date using regex
- Labels:
-
Apache NiFi
-
NiFi Registry
Created ‎02-22-2022 06:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a situation where I have to get a new file every day at a specific time which is saved automatically on a specific folder on a remote server using GETSFTP Processor.
for example today there will be a file created on a remote server named 20220223.csv (23rd of Feb current date) . P.s I want to get only one file of the current date and I don't want to update my filename in the GETSFTP processor dynamically every day.
this is my try but it gets previous files too.
NOTE: Expression Language is not supported.
Created ‎02-22-2022 10:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Mun ,
Instead of using the GetSFTP processor, you should use the pattern ListSFTP -> FetchSFTP.
The ListSFTP processor is stateful and will remember which files were already fetched before.
Cheers,
André
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
