<?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: ValidateJson Log in case of validation failure in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365663#M239370</link>
    <description>Perfect it whas exactly what I missed.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Bruno&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Mar 2023 14:33:26 GMT</pubDate>
    <dc:creator>Bgrilher</dc:creator>
    <dc:date>2023-03-08T14:33:26Z</dc:date>
    <item>
      <title>ValidateJson Log in case of validation failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365649#M239364</link>
      <description>&lt;P&gt;Is there a way to get or see the log message in case of validation failure of a flow-content versus the provided json schema ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 10:59:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365649#M239364</guid>
      <dc:creator>Bgrilher</dc:creator>
      <dc:date>2023-03-08T10:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: ValidateJson Log in case of validation failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365660#M239368</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103881"&gt;@Bgrilher&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I not completely clear on your ask here.&lt;BR /&gt;&lt;BR /&gt;According to the &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.20.0/org.apache.nifi.processors.standard.ValidateJson/index.html" target="_self"&gt;ValidateJson&lt;/A&gt; processor documentation, a FlowFile Attribute is added to FlowFiles that are routed to the "invalid" relationship:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1678283988952.png" style="width: 687px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36933iC5C29BDD454DD905/image-dimensions/687x62?v=v2" width="687" height="62" role="button" title="MattWho_0-1678283988952.png" alt="MattWho_0-1678283988952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can route this "invalid" relationship via a connection to a &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.20.0/org.apache.nifi.processors.standard.LogAttribute/index.html" target="_self"&gt;logAttribute&lt;/A&gt; processor which can write a log line out to the nifi-app.log (default) with what was written to this FlowFile attribute.&lt;BR /&gt;&lt;BR /&gt;If you are not actually looking to see it generate log output but just want to see what was written to this FlowFile attribute, you can use NiFi &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#data_provenance" target="_self"&gt;data provenance&lt;/A&gt; for this.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Data provenance will give you ability to see FlowFile metedata for a FlowFile in all stages throughout the dataflow that FlowFile progressed.&amp;nbsp; You can also view and download the content (if it is still present in a NiFi dataflow or still present in NiFi archive) at by stage of its processing through your dataflow.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 14:06:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365660#M239368</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-08T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: ValidateJson Log in case of validation failure</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365663#M239370</link>
      <description>Perfect it whas exactly what I missed.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Bruno&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Mar 2023 14:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ValidateJson-Log-in-case-of-validation-failure/m-p/365663#M239370</guid>
      <dc:creator>Bgrilher</dc:creator>
      <dc:date>2023-03-08T14:33:26Z</dc:date>
    </item>
  </channel>
</rss>

