<?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 How can I filter the NiFi log to exclude a certain error message? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219067#M77317</link>
    <description>&lt;P&gt;I am constantly seeing this error message in the nifi-app.log file.&lt;/P&gt;&lt;PRE&gt;2018-04-16 11:00:36,383 ERROR [nifi.async.batch_nifi.async.batch.hdfs_destWriter] o.a.r.audit.provider.BaseAuditHandler Error writing to log file.
java.io.IOException: No FileSystem for scheme: hdfs
        at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.getLogFileStream(HDFSAuditDestination.java:271)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.access$000(HDFSAuditDestination.java:43)
        at org.apache.ranger.audit.destination.HDFSAuditDestination$1.run(HDFSAuditDestination.java:157)
        at org.apache.ranger.audit.destination.HDFSAuditDestination$1.run(HDFSAuditDestination.java:154)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
        at org.apache.ranger.audit.provider.MiscUtil.executePrivilegedAction(MiscUtil.java:524)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.logJSON(HDFSAuditDestination.java:154)
        at org.apache.ranger.audit.queue.AuditFileSpool.sendEvent(AuditFileSpool.java:880)
        at org.apache.ranger.audit.queue.AuditFileSpool.runLogAudit(AuditFileSpool.java:828)
        at org.apache.ranger.audit.queue.AuditFileSpool.run(AuditFileSpool.java:758)
        at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;&lt;P&gt;Since this is a bug related to the version of NiFi I am on, I do not need to see it as it happens very frequently and is cluttering the log file. How can I exclude this so it is not logged? Is there some configuration I can do in the logback.xml file?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 12:17:51 GMT</pubDate>
    <dc:creator>josh_nicholson</dc:creator>
    <dc:date>2026-04-21T12:17:51Z</dc:date>
    <item>
      <title>How can I filter the NiFi log to exclude a certain error message?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219067#M77317</link>
      <description>&lt;P&gt;I am constantly seeing this error message in the nifi-app.log file.&lt;/P&gt;&lt;PRE&gt;2018-04-16 11:00:36,383 ERROR [nifi.async.batch_nifi.async.batch.hdfs_destWriter] o.a.r.audit.provider.BaseAuditHandler Error writing to log file.
java.io.IOException: No FileSystem for scheme: hdfs
        at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2660)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2667)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2703)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2685)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:373)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.getLogFileStream(HDFSAuditDestination.java:271)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.access$000(HDFSAuditDestination.java:43)
        at org.apache.ranger.audit.destination.HDFSAuditDestination$1.run(HDFSAuditDestination.java:157)
        at org.apache.ranger.audit.destination.HDFSAuditDestination$1.run(HDFSAuditDestination.java:154)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
        at org.apache.ranger.audit.provider.MiscUtil.executePrivilegedAction(MiscUtil.java:524)
        at org.apache.ranger.audit.destination.HDFSAuditDestination.logJSON(HDFSAuditDestination.java:154)
        at org.apache.ranger.audit.queue.AuditFileSpool.sendEvent(AuditFileSpool.java:880)
        at org.apache.ranger.audit.queue.AuditFileSpool.runLogAudit(AuditFileSpool.java:828)
        at org.apache.ranger.audit.queue.AuditFileSpool.run(AuditFileSpool.java:758)
        at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;&lt;P&gt;Since this is a bug related to the version of NiFi I am on, I do not need to see it as it happens very frequently and is cluttering the log file. How can I exclude this so it is not logged? Is there some configuration I can do in the logback.xml file?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:17:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219067#M77317</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2026-04-21T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter the NiFi log to exclude a certain error message?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219068#M77318</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/48501/joshnicholson.html" nodeid="48501"&gt;@Josh Nicholson&lt;/A&gt;&lt;P&gt; NiFi use logback for logging of component classes in NiFi.  It is possible to add a logger for that will turn off all logging for specific class but not a specific error.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;First you need the complete java class name.  Using simply "o.a.r.audit.provider.BaseAuditHandler" will not work.  We need to figure out what the "o", "a", and "r" really are.&lt;/P&gt;&lt;P&gt;To get NiFi to print out the entire class you are going to want to edit the following section in the logback.xml:&lt;/P&gt;&lt;PRE&gt;            &amp;lt;appender name="APP_FILE"&amp;gt;
            &amp;lt;file&amp;gt;${org.apache.nifi.bootstrap.config.log.dir}/nifi-app.log&amp;lt;/file&amp;gt;
            &amp;lt;rollingPolicy&amp;gt;
            &amp;lt;!--
            For daily rollover, use 'app_%d.log'.
            For hourly rollover, use 'app_%d{yyyy-MM-dd_HH}.log'.
            To GZIP rolled files, replace '.log' with '.log.gz'.
            To ZIP rolled files, replace '.log' with '.log.zip'.
            --&amp;gt;
            &amp;lt;fileNamePattern&amp;gt;${org.apache.nifi.bootstrap.config.log.dir}/nifi-app_%d{yyyy-MM-dd_HH}.%i.log&amp;lt;/fileNamePattern&amp;gt;
            &amp;lt;maxFileSize&amp;gt;100MB&amp;lt;/maxFileSize&amp;gt;
            &amp;lt;!-- keep 30 log files worth of history --&amp;gt;
            &amp;lt;maxHistory&amp;gt;30&amp;lt;/maxHistory&amp;gt;
            &amp;lt;!-- optional setting for keeping 10GB total of log files
            &amp;lt;totalSizeCap&amp;gt;10GB&amp;lt;/totalSizeCap&amp;gt;
            --&amp;gt;
            &amp;lt;/rollingPolicy&amp;gt;
            &amp;lt;immediateFlush&amp;gt;true&amp;lt;/immediateFlush&amp;gt;
            &amp;lt;encoder&amp;gt;
            &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;
            &amp;lt;/encoder&amp;gt;
            &amp;lt;/appender&amp;gt;&lt;/PRE&gt;&lt;P&gt;Third line from the bottom is the "pattern" line.  Change "{40}" to "{140}".&lt;/P&gt;&lt;P&gt;Save the change.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Tail the nifi-app.log and wait for next occurrence of the above error.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;*** The good thing about the logback.xml file is that it can be edited while NiFi changes and those changes will take affect 30 secs to 2 minutes after you save the changes to the file.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Next we will want to edit the logback.xml file again to add a new logger:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;look for the following line:&lt;/P&gt;&lt;PRE&gt;&amp;lt;logger name="org.apache.nifi" level="INFO"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Then after this line add a new line similar to above except using the full class name you obtained:&lt;/P&gt;&lt;PRE&gt;&amp;lt;logger name="org.apache.ranger.audit.provider.BaseAuditHandler" level="OFF"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Make sure you set "Level" to "OFF"   (all caps).  &lt;/P&gt;&lt;P&gt;Save the file and you are done.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;**** If you found this answer addressed your question, please take a moment to login and click "accept"&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 01:59:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219068#M77318</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-04-17T01:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter the NiFi log to exclude a certain error message?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219069#M77319</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I was able to implement these steps and it did exactly what I needed. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 02:32:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219069#M77319</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-04-17T02:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter the NiFi log to exclude a certain error message?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219070#M77320</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/48501/joshnicholson.html"&gt;@Josh Nicholson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you point what is the bug (URL in jira or any other info) 
related to the error regarding hdfs scheme? What is your version of 
NiFi?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;,&lt;P&gt;Hi Josh, can you point what is the bug (URL in jira or any other info) related to the error regarding hdfs scheme? What is your version of NiFi?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 22:42:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219070#M77320</guid>
      <dc:creator>bruno_n_souza</dc:creator>
      <dc:date>2018-11-16T22:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter the NiFi log to exclude a certain error message?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219071#M77321</link>
      <description>&lt;P&gt;Another option could be to use Ambari log search&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 04:51:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-filter-the-NiFi-log-to-exclude-a-certain-error/m-p/219071#M77321</guid>
      <dc:creator>rtheron</dc:creator>
      <dc:date>2018-11-17T04:51:51Z</dc:date>
    </item>
  </channel>
</rss>

