<?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 1.2.0 on Windows 2012 Server is not rolling over its log files. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224829#M63555</link>
    <description>&lt;P&gt;Thanks Shashank, logs are now rolling over on both time and size triggers. Awesome!&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2017 02:14:51 GMT</pubDate>
    <dc:creator>ajviradia</dc:creator>
    <dc:date>2017-06-24T02:14:51Z</dc:date>
    <item>
      <title>Nifi 1.2.0 on Windows 2012 Server is not rolling over its log files.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224826#M63552</link>
      <description>&lt;P&gt;I have NiFi 1.2.0 installed on the Windows 2012 R2 server, it creates the standard logs files as under:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;nifi-bootstrap.log&lt;/LI&gt;&lt;LI&gt;nifi-app.log&lt;/LI&gt;&lt;LI&gt;nifi-user.log&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Issue is that these files are not rolling over daily or based on size. Can someone help? I have attached the logback.xml file.&lt;/P&gt;&lt;P&gt;Also, are the changes to this logback.xml dynamically implemented, or it requires NiFi to get into effect?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:48:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224826#M63552</guid>
      <dc:creator>ajviradia</dc:creator>
      <dc:date>2017-06-23T07:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.2.0 on Windows 2012 Server is not rolling over its log files.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224827#M63553</link>
      <description>&lt;P&gt;Hi Avi,&lt;/P&gt;&lt;P&gt;Please updated the logback.xml with below correction and restart nifi to reflect the changes.&lt;/P&gt;&lt;P&gt;your logback.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;fileNamePattern&amp;gt;
C:\NiFi\nifi-1.2.0\logs\nifi-app_%d{yyyy-MM-dd_HH}.%i.zip
&amp;lt;/fileNamePattern&amp;gt;
&lt;/PRE&gt;&lt;P&gt;But it should be:&lt;/P&gt;&lt;PRE&gt;&amp;lt;fileNamePattern&amp;gt;
C:\NiFi\nifi-1.2.0\logs\nifi-app_%d{yyyy-MM-dd_HH}.%i.log.zip
&amp;lt;/fileNamePattern&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:04:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224827#M63553</guid>
      <dc:creator>Anishkumarv</dc:creator>
      <dc:date>2017-06-23T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.2.0 on Windows 2012 Server is not rolling over its log files.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224828#M63554</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/16106/ajviradia.html"&gt;AViradia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I suspect that Windows locking mechanism restricts the original file to be renamed(Check &lt;A href="http://dev.eclipse.org/mhonarc/lists/jetty-users/msg03222.html" target="_blank"&gt;http://dev.eclipse.org/mhonarc/lists/jetty-users/msg03222.html&lt;/A&gt; for details).&lt;/P&gt;&lt;P&gt;You can omit the &lt;EM&gt;file &lt;/EM&gt;property in logback.xml, and then the active log file will be computed a new for each period based on the value of fileNamePattern. 

A working &lt;EM&gt;rollingpolicy&lt;/EM&gt; for a NiFi node on Windows is as follows:&lt;/P&gt;&lt;PRE&gt;&amp;lt;appender name="APP_FILE"&amp;gt; 
&amp;lt;!-- &amp;lt;file&amp;gt;${org.apache.nifi.bootstrap.config.log.dir}/nifi-app.log&amp;lt;/file&amp;gt; --&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;timeBasedFileNamingAndTriggeringPolicy&amp;gt; 
&amp;lt;maxFileSize&amp;gt;100MB&amp;lt;/maxFileSize&amp;gt; 
&amp;lt;/timeBasedFileNamingAndTriggeringPolicy&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;/rollingPolicy&amp;gt; 
&lt;/PRE&gt;&lt;P&gt;
Ref: &lt;A href="https://logback.qos.ch/manual/appenders.html" target="_blank"&gt;https://logback.qos.ch/manual/appenders.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 20:51:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224828#M63554</guid>
      <dc:creator>Schandhok</dc:creator>
      <dc:date>2017-06-23T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.2.0 on Windows 2012 Server is not rolling over its log files.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224829#M63555</link>
      <description>&lt;P&gt;Thanks Shashank, logs are now rolling over on both time and size triggers. Awesome!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 02:14:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-2-0-on-Windows-2012-Server-is-not-rolling-over-its/m-p/224829#M63555</guid>
      <dc:creator>ajviradia</dc:creator>
      <dc:date>2017-06-24T02:14:51Z</dc:date>
    </item>
  </channel>
</rss>

