<?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 Log Rotation in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/401421#M251149</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123757"&gt;@ayu_dev&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the Cloudera Community.&lt;BR /&gt;&lt;BR /&gt;Please start a new Cloudera Community question rather then adding a new thread on an existing question from over a year ago.&amp;nbsp; You'll get much better traction there.&amp;nbsp; Your query is unrelated to the original question in this thread around log rotation and retention policies.&lt;BR /&gt;&lt;BR /&gt;Fell free to ping me in your new community question and I'll be happy to take a look.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 14:33:53 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-02-03T14:33:53Z</dc:date>
    <item>
      <title>Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381547#M244334</link>
      <description>&lt;P&gt;I need to configure nifi for log rotation. I have seen this article:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Understanding-how-the-logback-xml-configuration-in-NiFi/ta-p/248662" target="_blank" rel="noopener"&gt;Understanding how the logback.xml configuration in... - Cloudera Community - 248662&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here I have few doubts regarding the property.&lt;/P&gt;&lt;PRE&gt;&amp;lt;maxHistory&amp;gt;30&amp;lt;/maxHistory&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It's mentioned in comments as&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- keep 30 log files worth of history --&amp;gt;&lt;/PRE&gt;&lt;P&gt;But on checking I have come across a document&amp;nbsp;&lt;A href="https://mkyong.com/logging/logback-xml-example/" target="_blank" rel="noopener"&gt;logback.xml Example - Mkyong.com&lt;/A&gt;&amp;nbsp;where its mentioned as&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;&lt;LI-CODE lang="markup"&gt;            &amp;lt;!-- each archived file, size max 10MB --&amp;gt;
            &amp;lt;maxFileSize&amp;gt;10MB&amp;lt;/maxFileSize&amp;gt;
            &amp;lt;!-- total size of all archive files, if total size &amp;gt; 20GB, it will delete old archived file --&amp;gt;
            &amp;lt;totalSizeCap&amp;gt;20GB&amp;lt;/totalSizeCap&amp;gt;
            &amp;lt;!-- 60 days to keep --&amp;gt;
            &amp;lt;maxHistory&amp;gt;60&amp;lt;/maxHistory&amp;gt;&lt;/LI-CODE&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;So, my doubt is does &lt;EM&gt;maxhistory&lt;/EM&gt; refers to number of file or number of days. Also do we really need to add&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;totalSizeCap&lt;/EM&gt; because anyway we are adding &lt;EM&gt;maxhistory&lt;/EM&gt; and &lt;EM&gt;maxfilesize&lt;/EM&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 11:26:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381547#M244334</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-02T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381567#M244337</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The answer to your question is neither...&lt;BR /&gt;The following property is relative to the configuration of the "fileNamingPattern" property.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;maxHistory&amp;gt;60&amp;lt;/maxHistory&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Let's say we have the following&amp;nbsp; fileNamingPattern property:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;fileNamePattern&amp;gt;logs/archived/app.%d{yyyy-MM-dd}.log.gz&amp;lt;/fileNamePattern&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This pattern would create one log file per day and then maxHistory would would dictate number of days to retain as 60.&amp;nbsp; &amp;nbsp; In this specific example the number of days retained and number of files and number of days both equal 60.&lt;BR /&gt;&lt;BR /&gt;and another example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;fileNamePattern&amp;gt;${org.apache.nifi.bootstrap.config.log.dir}/nifi-app_%d{yyyy-MM-dd_HH}.log&amp;lt;/fileNamePattern&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Here you will notice the date pattern is based on hourly logs.&amp;nbsp; So the "maxHistory" property in this example would dictate the number of hours worth of logs to retain (not days).&lt;BR /&gt;&lt;BR /&gt;Now lets look at a slightly different example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;fileNamePattern&amp;gt;logs/archived/app.%d{yyyy-MM-dd}.%i.log.gz&amp;lt;/fileNamePattern&amp;gt;
&amp;lt;maxFileSize&amp;gt;10MB&amp;lt;/maxFileSize&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In this example you'll notice "%i" has been added to pattern.&amp;nbsp; "%i" works in conjunction with the "maxFileSize" property.&amp;nbsp; throughout a single day any time the log file sizes reaches 10MB, an incremental number log for the same day is created.&amp;nbsp;&lt;BR /&gt;app.2024-01-02.1.log.gz&lt;BR /&gt;app.2024-01-02.2.log.gz&lt;BR /&gt;app.2024-01-02.3.log.gz&lt;BR /&gt;...&lt;BR /&gt;The MaxHistory does not take into consideration the "%i" incremental logs.&amp;nbsp; It is still based on the %d pattern to retain 60 days of logs.&amp;nbsp; So in this case you would have any number of files potentially created across those 60 days.&lt;BR /&gt;&lt;BR /&gt;The same applies to the hours based example if "%i" is added to the fileNamingPattern.&lt;BR /&gt;&lt;BR /&gt;in order to protect disk usage you will often see the following used:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&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;maxHistory&amp;gt;30&amp;lt;/maxHistory&amp;gt;
&amp;lt;totalSizeCap&amp;gt;10GB&amp;lt;/totalSizeCap&amp;gt;
&amp;lt;/rollingPolicy&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;What this does is create hourly logs that will incrementally role during each hour if the log file reaches 100MB in size.&lt;BR /&gt;Then to prevent excessive disk usage should logging unexpectedly increase in log generation, the "TotalSizeCap" will start deleting the oldest rolled logs until max usage is below 10GB.&amp;nbsp; This may mean that 30 hours of logs are no longer retained, but you avoid disk usage issues when the unexpected happens.&lt;/P&gt;&lt;P&gt;Hopefully this clears this up for you.&lt;BR /&gt;&lt;BR /&gt;NOTE: Above is based on the "SizeAndTimeBasedRollingPolicy".&amp;nbsp; LogBack as other rolling Policy providers.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 14:16:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381567#M244337</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-02T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381797#M244413</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Really appreciate your detailed answer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need few clarifications.&amp;nbsp;&lt;BR /&gt;You mentioned &lt;SPAN&gt;"TotalSizeCap" will start deleting the oldest rolled logs until max usage is below 10GB" is it calculated per day?&lt;BR /&gt;We are haven't used the property "TotalSizeCap" property. This is What we were using:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&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;50MB&amp;lt;/maxFileSize&amp;gt;
                &amp;lt;!-- keep 30 log files worth of history --&amp;gt;
                &amp;lt;maxHistory&amp;gt;10&amp;lt;/maxHistory&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;So,&lt;SPAN&gt;&amp;nbsp;another doubt is regarding "maxHistory" property. This means latest 10hrs of log is kept,&amp;nbsp;is it?&amp;nbsp;if so,&amp;nbsp;will the older 12th &amp;amp; 11th hour log be deleted? and&amp;nbsp;is&amp;nbsp;it calculated per day?&lt;BR /&gt;&lt;BR /&gt;Currently I'm observing the log rotation after editing&amp;nbsp;few values. Added "totalsizecap" too. Your inputs and suggestions will be valuable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 11:29:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381797#M244413</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-09T11:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381803#M244418</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. TotalSizeCap is across all log files, it is not based on anything else.&amp;nbsp; So with this set depending on number of incremental (%i) 50 MB logs are created each hour, you may ned up retaining less then 10 hours of logs.&lt;BR /&gt;&lt;BR /&gt;2. Max History does not count incremental (%i) logs generated.&amp;nbsp; It is based on the date pattern used %d{yyyy-MM-dd_HH}.&amp;nbsp; So you role logs every hour, so MaxHistory would retain 10 days unless TotalSizeCap is reached before 10 days of logs are created.&lt;BR /&gt;&lt;BR /&gt;Logback is not developed by NiFi and has some oddities to it.&amp;nbsp; It works well when using both maxHistory and TotalSizeCap, but you may see odd behavior when only using MaxHistory.&amp;nbsp; When only MaxHistory is used, Logback does not look back further than configured maxHistory.&amp;nbsp; So while a continually running service works great, things get weird when the service is down for a period of time the extends beyond the maxHistory.&lt;BR /&gt;&lt;BR /&gt;Lets say you have logs for last 10 hours (hours 1 -10) already and you bring down NiFi for a couple hours.&amp;nbsp; So now you have logs that go back 12 hours (hours 3-12)when you restart the service.&amp;nbsp; Logback will ignore the hour 11 and hour 12 logs since it is only looking to purge the hour 10 logs when the hour rolls over.&amp;nbsp; So a few hours later you would still see the logs for hour 11 and 12 lingering around with a continuous 10 hour block of logs logback is still tracking on.&amp;nbsp; &amp;nbsp;The TotalSizeCap property however would make sure those old logs get deleted.&amp;nbsp; This odd behavior to me was also brought up with logback community, but ultimately community decided to keep this behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 14:06:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381803#M244418</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-09T14:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381834#M244436</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/26087"&gt;@mat&lt;/a&gt;&amp;nbsp;I'm good the functionality of "&lt;SPAN&gt;TotalSizeCap", but still in a confusion with "&amp;nbsp;Max &lt;EM&gt;History".&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;In the first reply you mentioned like this:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;fileNamePattern&amp;gt;${org.apache.nifi.bootstrap.config.log.dir}/nifi-app_%d{yyyy-MM-dd_HH}.log&amp;lt;/fileNamePattern&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Here you will notice the date pattern is based on hourly logs. So the "maxHistory" property in this example would dictate the number of hours worth of logs to retain (&lt;STRONG&gt;not days&lt;/STRONG&gt;)."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Last reply you have mentioned like this:&amp;nbsp;&lt;EM&gt;Max History does not count incremental (%i) logs generated.&amp;nbsp; It is based on the date pattern used %d{yyyy-MM-dd_HH}.&amp;nbsp; So you role logs every hour, so &lt;STRONG&gt;MaxHistory would retain 10 days&lt;/STRONG&gt; unless TotalSizeCap is reached before 10 days of logs are created."&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Please have a look at the above bolded characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Nifi version - &lt;STRONG&gt;1.17.0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;This is a sample of Nifi app log file which is being generated now.&lt;BR /&gt;nifi-app_2024-01-09_11.0.log&lt;BR /&gt;&amp;nbsp;nifi-app_2024-01-09_11.1.log&lt;BR /&gt;&amp;nbsp;nifi-app_2024-01-09_11.2.log&lt;BR /&gt;nifi-app_2024-01-09_11.3.log&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I understood that its writted in an hourly basis. And this is the 11th hour log file.&amp;nbsp;&lt;BR /&gt;Suppose I give "&lt;SPAN&gt;Max History" as 2 and there is no "&amp;nbsp;TotalSizeCap"&amp;nbsp;What should ideally happen? (I'm asking this because I need to make sure we are on the same page. According to me it will keep only latest 2hr of log only&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 03:23:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381834#M244436</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-10T03:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381923#M244450</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry about the confusion, it shoudl have said hours instead of days in my response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2. Max History does not count incremental (%i) logs generated.  It is based on the date pattern used %d{yyyy-MM-dd_HH}.  So you role logs every hour, so MaxHistory would retain 10 hours unless TotalSizeCap is reached before 10 hours of logs are created.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So you example here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi-app_2024-01-09_11.0.log
 nifi-app_2024-01-09_11.1.log
 nifi-app_2024-01-09_11.2.log
nifi-app_2024-01-09_11.3.log&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Implies you are using the pattern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&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;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This also means you are using "maxFileSize" property as well that controls when each incremental hour log is rolled.&lt;BR /&gt;&lt;BR /&gt;Without a&amp;nbsp;&lt;SPAN&gt;"TotalSizeCap" property set, logs will be retained for 2 hours or until you run out of disk space since there is no boundary on the number of incremental logs that may roll within each of those 2 hours.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi-app_2024-01-09_11.0.log
nifi-app_2024-01-09_11.1.log
nifi-app_2024-01-09_11.2.log
nifi-app_2024-01-09_11.3.log
nifi-app_2024-01-09_11.4.log
nifi-app_2024-01-09_11.5.log
...
nifi-app_2024-01-09_12.0.log
nifi-app_2024-01-01_12.1.log
nifi-app_2024-01-09_12.2.log
nifi-app_2024-01-09_12.3.log
nifi-app_2024-01-09_12.4.log
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 21:11:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/381923#M244450</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-10T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382190#M244516</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Appreciate your detailed information in clearing the doubts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Log rotation is working fine. But problem happens when we are switching off&amp;amp;on the NIFI.&amp;nbsp; I good with Nifi being ignoring the logs when it's switched off. So I have used a new property called:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I have taken this from the document:&amp;nbsp;&lt;A href="https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy" target="_blank"&gt;Chapter 4: Appenders (qos.ch)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But the problem is all the old logs are still present. I believe some additional configurations are to be added in order to remove previous days logs(last 2 hours logs only). Correct me if I'm wrong. This is my current configuration.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;appender name="APP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&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 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&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}.log.gz&amp;lt;/fileNamePattern&amp;gt;
                &amp;lt;!-- keep 30 log files worth of history --&amp;gt;
                &amp;lt;maxHistory&amp;gt;2&amp;lt;/maxHistory&amp;gt;
                &amp;lt;totalSizeCap&amp;gt;1GB&amp;lt;/totalSizeCap&amp;gt;
                &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;
            &amp;lt;/rollingPolicy&amp;gt;
            &amp;lt;immediateFlush&amp;gt;true&amp;lt;/immediateFlush&amp;gt;
            &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&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;/LI-CODE&gt;&lt;P&gt;I switched off the EKS cluster and on next day when I switched on, the log of last two hours of previous day is still present.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;These are the jars available:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;log4j-over-slf4j-1.7.36.jar&lt;/LI&gt;&lt;LI&gt;logback-classic-1.2.11.jar&lt;/LI&gt;&lt;LI&gt;logback-core-1.2.11.jar&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 15 Jan 2024 13:35:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382190#M244516</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-15T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382329#M244554</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have never used&amp;nbsp;cleanHistoryOnStart and the docs are not super clear.&lt;BR /&gt;Archive removal normally happens at time of log rotation.&amp;nbsp; This is why older logs beyond window in which they should be retained linger around when application is down and then started up.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I cam across this post that has some interesting responses:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/54680434/the-old-log-files-didnt-get-removed-when-using-logback-rollingfileappender" target="_blank"&gt;https://stackoverflow.com/questions/54680434/the-old-log-files-didnt-get-removed-when-using-logback-rollingfileappender&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Implied from that that post it is not removing the files because of your rolling policy&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%d{yyyy-MM-dd_HH}&lt;/LI-CODE&gt;&lt;P&gt;If what they are saying is correct, it will not remove your old logs because they are form a different day and your log rotation is based on hour within current day.&lt;BR /&gt;&lt;BR /&gt;I more commonly uses "totalSizeCap" setting a value here larger than what i expect to see retained in my desired history time window or even larger based on available disk space.&amp;nbsp; This has worked for me to clean old stuff up so it is not around forever.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 15:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382329#M244554</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-17T15:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382400#M244573</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;In my case&amp;nbsp;&lt;SPAN&gt;"&lt;EM&gt;totalSizeCap&lt;/EM&gt;" is also not working as expected. On checking further I understood that it's&amp;nbsp;fixed in 1.3.x version of logback. This is a similar issue:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/47752955/logback-sizeandtimebasedrollingpolicy-applies-totalsizecap-to-each-day-in-maxhi" target="_blank" rel="noopener"&gt;logging - Logback: SizeAndTimeBasedRollingPolicy applies totalSizeCap to each day in maxHistory - Stack Overflow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since I can't change Nifi version I'm moving forward with initcontaier functionality which will delete logs older than specified time when cluster starts up. Also need to change the comment related to &lt;EM&gt;maxhistory&lt;/EM&gt;. Still its given as log file rather than hour or day. Are you aware of any of the Nifi maintaniers ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 08:52:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382400#M244573</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-18T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382418#M244579</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I looked at the default logback.xml bundled with the latest NiFi 2.0 releases and see which is much better description of what it does:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;            &amp;lt;!-- Control the maximum number of log archive files kept and asynchronously delete older files --&amp;gt;
            &amp;lt;maxHistory&amp;gt;30&amp;lt;/maxHistory&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Control maximum number does not mean it is exactly the configured number being retained since maxHistory applies the TimeBasedRolling policy.&lt;/P&gt;&lt;P&gt;older versions of NiFi have following which is misleading:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;            &amp;lt;!-- keep 30 log files worth of history --&amp;gt;
            &amp;lt;maxHistory&amp;gt;30&amp;lt;/maxHistory&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know a lot of committers and they are not going to go back to older releases and update it there.&lt;BR /&gt;&lt;BR /&gt;NiFi went to Logback 1.3 as of Apache NiFi release 1.20 as part of:&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-10580" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-10580&lt;/A&gt;&lt;BR /&gt;later upgraded to:&lt;BR /&gt;1.3.8 ---&amp;gt; Apache NiFi 1.23.1 and 1.24.0&amp;nbsp;&lt;A class="issue-link" href="https://issues.apache.org/jira/browse/NIFI-11881" target="_blank" rel="13545525 noopener"&gt;NIFI-11881&lt;/A&gt;&lt;BR /&gt;1.3.14 --&amp;gt; Apache NiFI 1.25 and 2.0.0-M2&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-12462" target="_self"&gt;NIFI-12462&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382418#M244579</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-18T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382423#M244581</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I also noticed these comments and raised a concern in Apache Nifi Slack Channel. Let see whether they will have a fix on it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks again for your inputs&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:26:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382423#M244581</guid>
      <dc:creator>Alexy</dc:creator>
      <dc:date>2024-01-18T16:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382426#M244584</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103761"&gt;@Alexy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;MaxHistory is relative to timedBased Policy date pattern:&lt;BR /&gt;in the example shown in this thread you mentioned:&lt;BR /&gt;&lt;A href="https://mkyong.com/logging/logback-xml-example/" target="_blank"&gt;https://mkyong.com/logging/logback-xml-example/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The full rollingPolicy example is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&amp;gt;
            &amp;lt;fileNamePattern&amp;gt;logs/archived/app.%d{yyyy-MM-dd}.%i.log.gz&amp;lt;/fileNamePattern&amp;gt;
            &amp;lt;!-- each archived file, size max 10MB --&amp;gt;
            &amp;lt;maxFileSize&amp;gt;10MB&amp;lt;/maxFileSize&amp;gt;
            &amp;lt;!-- total size of all archive files, if total size &amp;gt; 20GB, it will delete old archived file --&amp;gt;
            &amp;lt;totalSizeCap&amp;gt;20GB&amp;lt;/totalSizeCap&amp;gt;
            &amp;lt;!-- 60 days to keep --&amp;gt;
            &amp;lt;maxHistory&amp;gt;60&amp;lt;/maxHistory&amp;gt;
        &amp;lt;/rollingPolicy&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Within the fileNamePattern we see the configured date pattern "&lt;SPAN&gt;%d{yyyy-MM-dd}" which is based on days.&amp;nbsp; So, maxHistory of 60 means in this specific example to retain "60" days.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Now if that date pattern instead was "&lt;SPAN&gt;&lt;STRONG&gt;%d{yyyy-MM-dd_HH}&lt;/STRONG&gt;" which is based on hours instead, the same &lt;STRONG&gt;maxHistory&lt;/STRONG&gt;=60 would now mean 60 hours of logs.&amp;nbsp; But since this policy also archives on size, the fileNamePattern also includes "&lt;STRONG&gt;%i&lt;/STRONG&gt;" which roles the log incrementally each time it reaches the configured &lt;STRONG&gt;maxFileSize&lt;/STRONG&gt;= 10MB.&amp;nbsp; So it will keep 60 days of logs; however, each of those 60 days could have 1 too many rolled logs depending on how much logging is output.&amp;nbsp;&lt;BR /&gt;app.2024-01-18.1.log.gz&lt;BR /&gt;app.2024-01-18.2.log.gz&lt;BR /&gt;app.2024-01-18.3.log.gz&lt;BR /&gt;app.2024-01-18.4.log.gz&lt;BR /&gt;app.2024-01-18.5.log.gz&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;So if your application decides to unexpectedly start producing large amounts of log output, you could quickly consume all your disk space with incremental logs.&amp;nbsp; This is where the &lt;STRONG&gt;TotalSizeCap&lt;/STRONG&gt; setting comes into the picture. It's job is to say regardless of number of logs you want to keep (60 days in this specific configuration example), start deleting old archives when total log archives exceeds this configured size cap.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;maxHistory is relative to the configured date pattern and is always days.&lt;BR /&gt;&lt;BR /&gt;So comment in above exact example is correct.&amp;nbsp; it is not about number of log files and since pattern is based in days, it is correct.&lt;BR /&gt;&lt;BR /&gt;A better generic comment is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- Control the maximum number of log archive files kept and asynchronously delete older files --&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;since it makes no specific relative to the dat pattern being used. It simply states that the maxHistory value correlates to number of log archives that are retained.&amp;nbsp; What that equates (minutes, hours, days, etc) to depends on the user defined data pattern.&lt;BR /&gt;&lt;BR /&gt;I modified the example in the article you liked that I created with above comment instead of days even though I called it out later in my article for clarity.&lt;BR /&gt;&lt;BR /&gt;In my opinion, &lt;STRONG&gt;TotalSizeCap&lt;/STRONG&gt; is something you should use anytime you use the&amp;nbsp;&lt;SPAN&gt;SizeAndTimeBasedRollingPolicy.&amp;nbsp; That is because &lt;STRONG&gt;maxHistory&lt;/STRONG&gt;&amp;nbsp;setting does not take into account the incrementally (%i) created log files.&amp;nbsp; So using above example where it is creating daily logs (%d{yyyy-MM-dd}) the maxHistory= 60 says to keep 60 days of logs.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 17:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/382426#M244584</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-18T17:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/401386#M251133</link>
      <description>&lt;P&gt;&amp;lt;configuration scan="true" scanPeriod="10 seconds"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resetJUL&amp;gt;true&amp;lt;/resetJUL&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/contextListener&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Make sure the log directory exists, if not create it --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="logDir" value="C:/nifi-2.0.0/logs" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="APP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-app.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-app_%d{yyyy-MM-dd_HH}.%i.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxFileSize&amp;gt;1MB&amp;lt;/maxFileSize&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt; &amp;lt;!-- Increased total size cap --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;immediateFlush&amp;gt;true&amp;lt;/immediateFlush&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="USER_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-user.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-user_%d.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt; &amp;lt;!-- Increased maxHistory --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="REQUEST_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-request.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-request_%d.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt; &amp;lt;!-- Increased size cap for request logs --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="BOOTSTRAP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-bootstrap.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-bootstrap_%d{yyyy-MM-dd_HH}.%i.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxFileSize&amp;gt;1MB&amp;lt;/maxFileSize&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt; &amp;lt;!-- Increased total size cap --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="DEPRECATION_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-deprecation.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-deprecation_%d.%i.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxFileSize&amp;gt;1MB&amp;lt;/maxFileSize&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt; &amp;lt;!-- Increased total size cap --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="DEDICATED_LOGGING" class="ch.qos.logback.classic.sift.SiftingAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;discriminator class="org.apache.nifi.logging.NifiDiscriminator"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sift&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="APP-${logFileSuffix}_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;C:/nifi-2.0.0/logs/nifi-app-${logFileSuffix}.log&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileNamePattern&amp;gt;${logDir}/nifi-app-${logFileSuffix}_%d{yyyy-MM-dd_HH}.%i.log&amp;lt;/fileNamePattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxFileSize&amp;gt;1MB&amp;lt;/maxFileSize&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maxHistory&amp;gt;1&amp;lt;/maxHistory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;totalSizeCap&amp;gt;1MB&amp;lt;/totalSizeCap&amp;gt; &amp;lt;!-- Increased total size cap --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cleanHistoryOnStart&amp;gt;true&amp;lt;/cleanHistoryOnStart&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rollingPolicy&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;immediateFlush&amp;gt;true&amp;lt;/immediateFlush&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sift&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;%date %level [%thread] %logger{40} %msg%n&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/encoder&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- valid logging levels: TRACE, DEBUG, INFO, WARN, ERROR --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Deprecation Log --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="deprecation" level="WARN" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="DEPRECATION_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.processors" level="WARN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.processors.standard.LogAttribute" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.processors.standard.LogMessage" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.controller.repository.StandardProcessSession" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.parquet.hadoop.InternalParquetRecordReader" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Py4J set to WARN to avoid verbose socket communication messages --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="py4j" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.ClientCnxn" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.server.NIOServerCnxn" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.server.NIOServerCnxnFactory" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.server.NettyServerCnxnFactory" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.server.quorum" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.ZooKeeper" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.zookeeper.server.PrepRequestProcessor" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.controller.reporting.LogComponentStatuses" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.calcite.runtime.CalciteException" level="OFF" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.curator.framework.recipes.leader.LeaderSelector" level="OFF" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.curator.ConnectionState" level="OFF" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Logger for managing logging statements for nifi clusters. --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.cluster" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Logger for logging HTTP requests received by the web server. --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.server.JettyServer" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Logger for managing logging statements for jetty --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.eclipse.jetty" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages related to Logback ServletContainerInitializer --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.eclipse.jetty.ee10.annotations.AnnotationConfiguration" level="WARN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages due to excessive logging by class or library --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.springframework" level="ERROR"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.springframework.security" level="INFO"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages due to known warning about redundant path annotation (NIFI-574) --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.glassfish.jersey.internal.Errors" level="ERROR"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages due to Jetty AnnotationParser emitting a large amount of WARNS. Issue described in NIFI-5479. --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.eclipse.jetty.annotations.AnnotationParser" level="ERROR"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages from SSHJ which was emitting large amounts of INFO logs by default --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="net.schmizz.sshj" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="com.hierynomus.sshj" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages from SMBJ which was emitting large amounts of INFO logs by default --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="com.hierynomus.smbj" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages from AWS KCL which was emitting large amounts of INFO logs by default --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="software.amazon.awssdk.kinesis" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages from Apache Atlas which was emitting large amounts of INFO logs by default --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.atlas" level="WARN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress non-error messages from JetBrains Xodus FileDataWriter related to FileChannel --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="jetbrains.exodus.io.FileDataWriter" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress warnings from Lucene Vectorization Provider related to JDK incubator features --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.lucene.internal.vectorization.VectorizationProvider" level="ERROR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Suppress information from Lucene Memory Segment Provider related to native access configuration --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.lucene.store.MemorySegmentIndexInputProvider" level="WARN" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- These log messages would normally go to the USER_FILE log, but they belong in the APP_FILE --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.web.security.requests" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="APP_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logger for capturing user events. We do not want to propagate these&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log events to the root logger. These messages are only sent to the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user-log appender.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.web.security" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.web.api.config" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.authorization" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.cluster.authorization" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.web.api.AccessResource" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.opensaml" level="WARN" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="USER_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Web Server Request Log --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.web.server.RequestLog" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="REQUEST_FILE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logger for capturing Bootstrap logs and NiFi's standard error and standard out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.bootstrap" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="BOOTSTRAP_FILE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.bootstrap.Command" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="CONSOLE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="BOOTSTRAP_FILE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Everything written to NiFi's Standard Out will be logged with the logger org.apache.nifi.StdOut at INFO level --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.StdOut" level="INFO" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="BOOTSTRAP_FILE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Everything written to NiFi's Standard Error will be logged with the logger org.apache.nifi.StdErr at ERROR level --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;logger name="org.apache.nifi.StdErr" level="ERROR" additivity="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="BOOTSTRAP_FILE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/logger&amp;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;&amp;nbsp;&amp;nbsp; &amp;lt;root level="INFO"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="APP_FILE" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="DEDICATED_LOGGING" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/root&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/configuration&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Help me the configuration as log rotation is only working for bootstrap and user.log files.Above is my configuration of logback.xml. why its not working, what changes should I do to make it work?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 04:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/401386#M251133</guid>
      <dc:creator>ayu_dev</dc:creator>
      <dc:date>2025-02-03T04:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Log Rotation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/401421#M251149</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123757"&gt;@ayu_dev&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the Cloudera Community.&lt;BR /&gt;&lt;BR /&gt;Please start a new Cloudera Community question rather then adding a new thread on an existing question from over a year ago.&amp;nbsp; You'll get much better traction there.&amp;nbsp; Your query is unrelated to the original question in this thread around log rotation and retention policies.&lt;BR /&gt;&lt;BR /&gt;Fell free to ping me in your new community question and I'll be happy to take a look.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Log-Rotation/m-p/401421#M251149</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-02-03T14:33:53Z</dc:date>
    </item>
  </channel>
</rss>

