<?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: How to identify source processor for failed NiFi flowfiles written to a log in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143189#M52318</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10100/rbolla.html" nodeid="10100" target="_blank"&gt;@Raj B&lt;/A&gt;&lt;P&gt;Please check for the 'Writes Attribute' in 'usage' of the processor. It describes the attribute each processor writes in case of failure. Below is the Usage of 'ExecuteStreamCommand' and it details 4 different error it writes during the execution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11927-writes-attribute.jpg" style="width: 985px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21659i6BCE7D04D3281816/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11927-writes-attribute.jpg" alt="11927-writes-attribute.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 08:06:58 GMT</pubDate>
    <dc:creator>rbalakrishnantc</dc:creator>
    <dc:date>2019-08-19T08:06:58Z</dc:date>
    <item>
      <title>How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143185#M52314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're logging failed flowfiles to local file system; when reviewing the failed flowfiles, there is no information to tell us at which processor a flowfile failed; I was thinking about tagging the flowfiles at each processor, with the processor name it's about to enter; and when logging the failed flowfile, embed this tag/attribute into the file name; so looking at the file name you could tell at what processor the flowfile failed; I'm sure this is not the best way, so any suggestions on how to do this better.&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 06:02:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143185#M52314</guid>
      <dc:creator>Raj_B</dc:creator>
      <dc:date>2017-01-24T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143186#M52315</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10100/rbolla.html" nodeid="10100"&gt;@Raj B&lt;/A&gt;&lt;P&gt; You can do this in many ways,&lt;/P&gt;&lt;P&gt;1. You can have an update attribute processor at the beginning of every Processor Group to specify the module name. But this cannot be replicated at processor level. Here, you keep updating the same attribute throughout the flow&lt;/P&gt;&lt;P&gt;2. You have have a 'Metadata' -&amp;gt; as a table or a flat file that will log all the attributes of the flow file. Please check AttributeToJson processor. This can log flow attributes both as an attribute or content. Also, note that every nifi processor adds additional 'error' attribute in case of any error which can be captured by AttributeToJson processor.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:46:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143186#M52315</guid>
      <dc:creator>rbalakrishnantc</dc:creator>
      <dc:date>2017-01-25T15:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143187#M52316</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/13945/rbalakrishnantce.html" nodeid="13945"&gt;@Balakrishnan Ramasamy&lt;/A&gt;; didn't know about the 'error' attribute on failed flowfiles.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:53:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143187#M52316</guid>
      <dc:creator>Raj_B</dc:creator>
      <dc:date>2017-01-26T21:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143188#M52317</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/13945/rbalakrishnantce.html" nodeid="13945" target="_blank"&gt;@Balakrishnan Ramasamy&lt;/A&gt;, do you know where I can find documentation about the 'error' attribute; I was looking in the NiFi documentation and it does not show the 'error' as an available attribute. Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11867-flowfile-core-attributes.png" style="width: 995px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21660i87AF07A8155C314F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11867-flowfile-core-attributes.png" alt="11867-flowfile-core-attributes.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:07:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143188#M52317</guid>
      <dc:creator>Raj_B</dc:creator>
      <dc:date>2019-08-19T08:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143189#M52318</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10100/rbolla.html" nodeid="10100" target="_blank"&gt;@Raj B&lt;/A&gt;&lt;P&gt;Please check for the 'Writes Attribute' in 'usage' of the processor. It describes the attribute each processor writes in case of failure. Below is the Usage of 'ExecuteStreamCommand' and it details 4 different error it writes during the execution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11927-writes-attribute.jpg" style="width: 985px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21659i6BCE7D04D3281816/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11927-writes-attribute.jpg" alt="11927-writes-attribute.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:06:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143189#M52318</guid>
      <dc:creator>rbalakrishnantc</dc:creator>
      <dc:date>2019-08-19T08:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143190#M52319</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10100/rbolla.html" nodeid="10100"&gt;@Raj B&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not all NiFi Processors will write attributes to FlowFiles about failures or errors.  The documentation for each processor should include what attributes are written by that processor and what information those attributes will contain.  There is no global enforcement by the NiFi controller on what attributes a processor must create.  This is completely in the control of the developer who wrote each processor.&lt;/P&gt;&lt;P&gt;That being said, it is good practice that any processor that has a "Failure" relationship should output an "Error" level log message that dictates the nature of the failure.  This Error log message would contain the specific processor that produced the ERROR as well as information on the specific FlowFile that was routed to failure and the nature of the failure.&lt;/P&gt;&lt;P&gt;It is possible to build a dataflow that monitors NiFi's nifi-app.log (TailFile processor) for ERROR log messages, parses out the relevant information and pass that along to some monitoring system.  &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143190#M52319</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-01-31T22:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143191#M52320</link>
      <description>&lt;P&gt;Thank you, I never paid attention to the "Writes Attributes" and didn't know what they were for.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:48:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143191#M52320</guid>
      <dc:creator>Raj_B</dc:creator>
      <dc:date>2017-02-01T21:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143192#M52321</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt&lt;/A&gt;, parsing the nifi-app.log sounds like a better approach to capture errors at each processor and be able to know where the flowfile failed. Perhaps Splunk might be a good fit for this task.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:52:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/143192#M52321</guid>
      <dc:creator>Raj_B</dc:creator>
      <dc:date>2017-02-01T21:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify source processor for failed NiFi flowfiles written to a log</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/269719#M52322</link>
      <description>&lt;P&gt;&lt;STRONG&gt;writes attribute of some processors (SplitRecord, ReplaceText ) does not contains the error it writes during execution.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How and where to identify the error in that case?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:02:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-identify-source-processor-for-failed-NiFi-flowfiles/m-p/269719#M52322</guid>
      <dc:creator>ektapanjwani20</dc:creator>
      <dc:date>2019-09-04T12:02:19Z</dc:date>
    </item>
  </channel>
</rss>

