<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi file transfer report in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/398317#M250159</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we get a report for all the file transfers for a given period ?&lt;/P&gt;&lt;P&gt;We are using Nifi to only transfer file from one location to another using SFTP and no transformation on file data.&lt;/P&gt;&lt;P&gt;Would like to generate a report with the transferred file name and its transfer status.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 08:47:47 GMT</pubDate>
    <dc:creator>nifier</dc:creator>
    <dc:date>2024-12-02T08:47:47Z</dc:date>
    <item>
      <title>NiFi file transfer report</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/398317#M250159</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we get a report for all the file transfers for a given period ?&lt;/P&gt;&lt;P&gt;We are using Nifi to only transfer file from one location to another using SFTP and no transformation on file data.&lt;/P&gt;&lt;P&gt;Would like to generate a report with the transferred file name and its transfer status.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:47:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/398317#M250159</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2024-12-02T08:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi file transfer report</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/399204#M250443</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117603"&gt;@nifier&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3&amp;nbsp; weeks old posting but I still hope it help resolve your reporting task.NiFi has a built-in &lt;STRONG&gt;Data Provenance&lt;/STRONG&gt; feature that tracks the lineage of data as it moves through the flow.&lt;BR /&gt;To capture file transfer details:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;1. Enable Provenance Reporting in NiFi&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Provenance Events:&lt;/STRONG&gt; NiFi records events such as &lt;STRONG&gt;SEND&lt;/STRONG&gt;, &lt;STRONG&gt;RECEIVE&lt;/STRONG&gt;, &lt;STRONG&gt;DROP&lt;/STRONG&gt;, and &lt;STRONG&gt;ROUTE&lt;/STRONG&gt;. For SFTP file transfers, look for &lt;STRONG&gt;SEND&lt;/STRONG&gt; events.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Steps to Enable Provenance Reporting:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Log in to the NiFi UI.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Go to the &lt;STRONG&gt;Provenance&lt;/STRONG&gt; tab (accessible from the top menu).&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Configure the &lt;STRONG&gt;Provenance Repository&lt;/STRONG&gt; in &lt;STRONG&gt;nifi.properties&lt;/STRONG&gt; to store sufficient &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;LI-SPOILER&gt;&lt;FONT size="2"&gt;nifi.provenance.repository.implementation=org.apache.nifi.provenance.WriteAheadProvenanceRepository&lt;BR /&gt;nifi.provenance.repository.&lt;STRONG&gt;max.storage.time&lt;/STRONG&gt;=30 days nifi.provenance.repository.&lt;STRONG&gt;max.storage.size&lt;/STRONG&gt;=1 GB&lt;/FONT&gt;&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Ensure the &lt;STRONG&gt;max.storage.time&lt;/STRONG&gt; or &lt;STRONG&gt;max.storage.size&lt;/STRONG&gt; is configured to retain events for the desired reporting period.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;2. Query Provenance Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="2"&gt;You can query and filter provenance events to generate the report:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Go to the &lt;STRONG&gt;Provenance&lt;/STRONG&gt; tab in the NiFi UI.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Filter the events using criteria:&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Component Name&lt;/STRONG&gt;: Filter for the SFTP processor (&lt;STRONG&gt;PutSFTP&lt;/STRONG&gt;).&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Event Type&lt;/STRONG&gt;: Select &lt;STRONG&gt;SEND.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date Range&lt;/STRONG&gt;: Specify the desired time frame.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Download the filtered results as a CSV file.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;3. Automate Reporting with NiFi Reporting Tasks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;To generate periodic reports automatically:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Use the &lt;STRONG&gt;SiteToSiteProvenanceReportingTask&lt;/STRONG&gt;:&lt;/FONT&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;In the NiFi canvas, navigate to &lt;STRONG&gt;Controller Settings&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Add a new &lt;STRONG&gt;Reporting Task&lt;/STRONG&gt; and select &lt;STRONG&gt;SiteToSiteProvenanceReportingTask&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Configure the Reporting Task to:&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Specify the target location for the report.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Filter for &lt;STRONG&gt;SEND&lt;/STRONG&gt; events related to your file transfer processors.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Schedule the Reporting Task to run periodically (e.g., daily or weekly).&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;4. Include File Name and Transfer Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;NiFi provenance events include metadata such as the file name, size, and transfer status:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;File Name&lt;/STRONG&gt;: Captured in the &lt;STRONG&gt;filename&lt;/STRONG&gt; attribute.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Transfer Status&lt;/STRONG&gt;:&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Success: The event is logged with &lt;STRONG&gt;SEND.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Failure: Look for errors or failed processor logs (use a &lt;STRONG&gt;LogMessage&lt;/STRONG&gt; processor to capture failure events in flow).&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;5. Alternative: Push Logs to External Tools&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="2"&gt;You can push the provenance data to an external system for detailed analysis and reporting:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Elasticsearch/Kibana&lt;/STRONG&gt;: Use the &lt;STRONG&gt;PutElasticsearch&lt;/STRONG&gt; processor to send provenance events to Elasticsearch and visualize them in Kibana.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Custom Script&lt;/STRONG&gt;: Use the &lt;STRONG&gt;ExecuteScript&lt;/STRONG&gt; processor to write a Python or Groovy script to extract, filter, and format the provenance data into a report.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;6. Sample Workflow for Reporting&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Use a &lt;STRONG&gt;QueryProvenance&lt;/STRONG&gt; processor to fetch provenance events for the desired period.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Filter for &lt;STRONG&gt;SEND&lt;/STRONG&gt; events from the SFTP processor.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Route successful and failed events to different processors (&lt;STRONG&gt;PutFile&lt;/STRONG&gt; for saving logs).&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Format the report (CSV/JSON) using processors like &lt;STRONG&gt;UpdateAttribute&lt;/STRONG&gt; and &lt;STRONG&gt;ConvertRecord&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT size="2"&gt;By combining these steps, you can efficiently generate a report for all file transfers in the given period, including file names and transfer statuses.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 15:54:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/399204#M250443</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2024-12-20T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi file transfer report</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407078#M252605</link>
      <description>&lt;P&gt;Sorry for very late reply, your response helped us a lot to set up Provenance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 05:54:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407078#M252605</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2025-04-28T05:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi file transfer report</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407109#M252612</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117603"&gt;@nifier&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thats good to hear. Now the onus is on you to share&amp;nbsp; the provenance setup that helped you resolve your problem.&lt;BR /&gt;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.&lt;BR /&gt;Happy hadooping&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:43:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407109#M252612</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2025-04-28T12:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi file transfer report</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407146#M252617</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;We just followed Steps 1,3 4 and 5 to generate the automated report to Elasticsearch. It was pretty straight forward.&lt;/P&gt;&lt;P&gt;Only things is we had to do was enable firewall in our Docker container and update Input Port's Access Policies.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 15:15:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-file-transfer-report/m-p/407146#M252617</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2025-04-29T15:15:44Z</dc:date>
    </item>
  </channel>
</rss>

