Member since
06-13-2023
3
Posts
1
Kudos Received
0
Solutions
02-26-2024
08:14 AM
@ShyamKumar Your dataflow design is still unclear here. - 'We have different client which will call the same generic PG" --> How is this being done? When you say "clients", are you referring to external to NiFi clients? How are these client request being sent to/received by NiFi's PG? We would need to understand your dataflow better before being able to provide better feedback. A detailed use case would be very helpful here. Thanks, Matt
... View more
06-13-2023
06:47 AM
1 Kudo
Hi, I think what you need is the GetFile processor and not FetchFile. In the Fetch File you have to specify the exact file path and name that you want to fetch and you can't use wild card. However in the Get File you specify the path in the "Input Directory" then you can use Regex in the "File Filter" property to capture files with certain pattern. In your case the search pattern in Regex will be something like ".*xyz.*\.txt" You need to watch for other Properties like "Keep Source File" which decide what to do with the file after its picked up. If you want to loop indefinitely then "False" would be the right value. Once the file is picked up you can save it somewhere else using PutFile processor. The "Recurse Subdirectories" let you decide wither you want to search root folder only or all folder levels. If that helps please accept solution. Thanks
... View more