Created 12-02-2024 12:47 AM
hi
How do we get a report for all the file transfers for a given period ?
We are using Nifi to only transfer file from one location to another using SFTP and no transformation on file data.
Would like to generate a report with the transferred file name and its transfer status.
Thanks
Created on 12-20-2024 07:52 AM - edited 12-20-2024 07:54 AM
@nifier
3 weeks old posting but I still hope it help resolve your reporting task.NiFi has a built-in Data Provenance feature that tracks the lineage of data as it moves through the flow.
To capture file transfer details:
1. Enable Provenance Reporting in NiFi
Provenance Events: NiFi records events such as SEND, RECEIVE, DROP, and ROUTE. For SFTP file transfers, look for SEND events.
Steps to Enable Provenance Reporting:
You can query and filter provenance events to generate the report:
3. Automate Reporting with NiFi Reporting Tasks
To generate periodic reports automatically:
4. Include File Name and Transfer Status
NiFi provenance events include metadata such as the file name, size, and transfer status:
You can push the provenance data to an external system for detailed analysis and reporting:
6. Sample Workflow for Reporting
By combining these steps, you can efficiently generate a report for all file transfers in the given period, including file names and transfer statuses.
Created on 12-20-2024 07:52 AM - edited 12-20-2024 07:54 AM
@nifier
3 weeks old posting but I still hope it help resolve your reporting task.NiFi has a built-in Data Provenance feature that tracks the lineage of data as it moves through the flow.
To capture file transfer details:
1. Enable Provenance Reporting in NiFi
Provenance Events: NiFi records events such as SEND, RECEIVE, DROP, and ROUTE. For SFTP file transfers, look for SEND events.
Steps to Enable Provenance Reporting:
You can query and filter provenance events to generate the report:
3. Automate Reporting with NiFi Reporting Tasks
To generate periodic reports automatically:
4. Include File Name and Transfer Status
NiFi provenance events include metadata such as the file name, size, and transfer status:
You can push the provenance data to an external system for detailed analysis and reporting:
6. Sample Workflow for Reporting
By combining these steps, you can efficiently generate a report for all file transfers in the given period, including file names and transfer statuses.
Created 04-27-2025 10:54 PM
Sorry for very late reply, your response helped us a lot to set up Provenance
Thank you so much.
Created 04-28-2025 05:43 AM
@nifier
Thats good to hear. Now the onus is on you to share the provenance setup that helped you resolve your problem.
It's priceless to share such information to grow our documentation base. If you do a good detailed write up then the moderators could help integrate that to the official Cloudera knowledgebase.
Happy hadooping
Created 04-29-2025 08:15 AM
@Shelton We just followed Steps 1,3 4 and 5 to generate the automated report to Elasticsearch. It was pretty straight forward.
Only things is we had to do was enable firewall in our Docker container and update Input Port's Access Policies.
Thanks