<?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 Re: Nifi flows ETL Process Log in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367762#M239976</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Ok, undestood. What I can tell you is that what you are trying to achieve is not impossible but is not easy either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe in the power of a community but in the same time I believe that the scope of the community is to help you with solutions and advice to your problems and not to do the work for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I assume that you already started a flow so lets start from there, what you developed, why it is not good and what you are missing from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my point of view, there are two options here:&lt;/P&gt;&lt;P&gt;1) You modify all of your &lt;STRONG&gt;Processors&lt;/STRONG&gt; to write the &lt;STRONG&gt;Bulletin Level&lt;/STRONG&gt; at INFO (or Debug) and afterwards, using an &lt;STRONG&gt;InvokeHTTP&lt;/STRONG&gt;, you can access your Bulletin Board with the &lt;STRONG&gt;REST API&lt;/STRONG&gt; and extract your information. This it not highly recommended as you will generate very large logs files. Besides that, your certificates must be generated accordingly, otherwise you will get some errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2) At each step in your flow, you write a message to &lt;STRONG&gt;LogMessage&lt;/STRONG&gt;, which will save your data into nifi-app.log. Here you can define in &lt;STRONG&gt;LogMessage&lt;/STRONG&gt; exactly what you want to write. Afterwards, you can create a separate flow, using a &lt;STRONG&gt;TailFile&lt;/STRONG&gt; Processor and extract everything you want from your nifi-app.log File. Here you will have to extract only the information you require &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Once you have extracted your data, either from your Bulletin Board or from your LogFile, you can build the SQL Statement for inserting the data into the DB.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 07:15:18 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-04-05T07:15:18Z</dc:date>
    <item>
      <title>Nifi flows ETL Process Log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367637#M239957</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I built a flow to pull data from the source (Oracle) and push it into the data warehouse. (Oracle).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ETL procedure log must be created in a database, for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FLOW_ID, FLOW_NAME, START_TIME, END_TIME, STATUS, and ERROR_MESSAGE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about doing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flow Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_0-1680571981509.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37174iA9965CF117E1AC0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_0-1680571981509.png" alt="saquibsk_0-1680571981509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log message into database like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_1-1680572225076.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37175iD7F17322D996ABBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_1-1680572225076.png" alt="saquibsk_1-1680572225076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 01:37:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367637#M239957</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2023-04-04T01:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi flows ETL Process Log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367707#M239965</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;What are you trying to achieve with this post, to be more precisely? You want to learn how to generate something in NiFi or you want somebody to help you write an SQL Query in your Data Warehouse? Please be so kind and provide some more details with regards to your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 13:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367707#M239965</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-04-04T13:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi flows ETL Process Log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367748#M239974</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create log of flows into database table. like when flow started, its succeed or failed. If failed then what is error message&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saquibsk_0-1680658341950.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37181i3A8164803931C34B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saquibsk_0-1680658341950.png" alt="saquibsk_0-1680658341950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shakib&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 01:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367748#M239974</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2023-04-05T01:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi flows ETL Process Log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367762#M239976</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104295"&gt;@saquibsk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Ok, undestood. What I can tell you is that what you are trying to achieve is not impossible but is not easy either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe in the power of a community but in the same time I believe that the scope of the community is to help you with solutions and advice to your problems and not to do the work for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I assume that you already started a flow so lets start from there, what you developed, why it is not good and what you are missing from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my point of view, there are two options here:&lt;/P&gt;&lt;P&gt;1) You modify all of your &lt;STRONG&gt;Processors&lt;/STRONG&gt; to write the &lt;STRONG&gt;Bulletin Level&lt;/STRONG&gt; at INFO (or Debug) and afterwards, using an &lt;STRONG&gt;InvokeHTTP&lt;/STRONG&gt;, you can access your Bulletin Board with the &lt;STRONG&gt;REST API&lt;/STRONG&gt; and extract your information. This it not highly recommended as you will generate very large logs files. Besides that, your certificates must be generated accordingly, otherwise you will get some errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2) At each step in your flow, you write a message to &lt;STRONG&gt;LogMessage&lt;/STRONG&gt;, which will save your data into nifi-app.log. Here you can define in &lt;STRONG&gt;LogMessage&lt;/STRONG&gt; exactly what you want to write. Afterwards, you can create a separate flow, using a &lt;STRONG&gt;TailFile&lt;/STRONG&gt; Processor and extract everything you want from your nifi-app.log File. Here you will have to extract only the information you require &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Once you have extracted your data, either from your Bulletin Board or from your LogFile, you can build the SQL Statement for inserting the data into the DB.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:15:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-flows-ETL-Process-Log/m-p/367762#M239976</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-04-05T07:15:18Z</dc:date>
    </item>
  </channel>
</rss>

