Great. Thank you.
On May 6, 2016 1:01 PM, "James Wing" <jvw...@gmail.com> wrote:

> Igor,
>
> The options that control log file rollover are in your NiFi's
> conf/logback.xml file.  Around line 24, you will find a section like the
> following for the nifi-app.log:
>
>         <rollingPolicy
> class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>             <!--
>               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'.
>             -->
>
> <fileNamePattern>./logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern>
>             <timeBasedFileNamingAndTriggeringPolicy
> class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
>                 <maxFileSize>100MB</maxFileSize>
>             </timeBasedFileNamingAndTriggeringPolicy>
>             <!-- keep 30 log files worth of history -->
>             <maxHistory>30</maxHistory>
>         </rollingPolicy>
>
> The default is not exactly what you want, but you can find an example of a
> rolling policy that generates a daily file a bit farther down, around line
> 64, where the nifi-bootstrap.log is defined:
>
>         <rollingPolicy
> class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>             <!--
>               For daily rollover, use 'user_%d.log'.
>               For hourly rollover, use 'user_%d{yyyy-MM-dd_HH}.log'.
>               To GZIP rolled files, replace '.log' with '.log.gz'.
>               To ZIP rolled files, replace '.log' with '.log.zip'.
>             -->
>             <fileNamePattern>./logs/nifi-bootstrap_%d.log</fileNamePattern>
>             <!-- keep 5 log files worth of history -->
>             <maxHistory>5</maxHistory>
>         </rollingPolicy>
>
>
>
>
> On Fri, May 6, 2016 at 9:40 AM, Igor Kravzov <igork.ine...@gmail.com>
> wrote:
>
>> Is there a configuration option to produce daily application log file
>> instead of one big file?
>>
>
>

Reply via email to