Mark Bean created NIFI-14729:
--------------------------------

             Summary: log files do not roll over on Windows platform
                 Key: NIFI-14729
                 URL: https://issues.apache.org/jira/browse/NIFI-14729
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.4.0
         Environment: Windows
            Reporter: Mark Bean


When running NiFi on a Windows platform, the log files do not roll over 
according to the settings in conf/logback.xml.

To reproduce, set the following for the nifi-app.log file (the first logger in 
the file)

<maxFileSize>1MB</maxFileSize>

You may choose a smaller size as well; use something that will be reached in a 
fairly short period of time. To help fill up the log, use a GenerateFlowFile -> 
LogAttribute. Create FlowFiles up to 1MB. (Any FlowFiles larger will not be log 
content to the log file.) And, set LogAttribute to log payload.

One possible reason a log file will not roll over is if there are other 
processes which have the file open. When I used Windows Resource Monitor, I 
discovered that there are two Java processes which are associated with the 
nifi-app.log handle. It is my suspicion that this may be preventing the file 
from being rolled. TBD.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to