Created 10-23-2017 09:44 PM
This past weekend I had an issue and my nifi-app logs filed up my drive. I have address the issue but I am trying to find out how I can configure nifi to rotate the nifi-app files so it dose not file up my disk space again. Thank you
Created 10-24-2017 04:51 AM
Hi @Andre Labbe
You can configure log rotation and retention in the logback configuration of NiFi. Please start by reading these ressources to get started:
Created 10-26-2017 03:58 AM
These links were very informative. After reading these and doing some testing I think I have found what I need but it is not available in the version that I have.
The option I am looking for is totalSizeCap. If I am reading the notes correctly is available in logback 1.1.8, and I am running Nifi 1.1.1 witch uses logback 1.1.3. Would you happen to know what version of logback is used by the newest version of Nifi?
Created 10-26-2017 09:09 AM
Hi @Andre Labbe
That's good news. Following NIFI-3694, it looks like logback has been updated to 1.2.3 on NiFi 1.2.
Created 11-04-2017 10:00 PM
@Andre Labbe If you found that this answer addressed your question, please take a moment to click "Accept" below.
Created 02-19-2020 12:54 AM
Did you get any feedback? How did you solved it?
Created 07-23-2018 07:32 PM
We have tried to change these settings but no joy. I "ruined" the logback xml and nifi did not start. So the file is being read. However, any setting change I make does not take affect (nifi-app.log).
Stock setup should rotate the logs every hour. We have not seen this behavior. Also, I changed the <maxFileSize> to 2MB but that doesn't help either.
Anyone have the same experience? Seems odd. We are on Windows 10.
Created 07-23-2018 08:03 PM
<file>${org.apache.nifi.bootstrap.config.log.dir}/nifi-app.log</file>
Until 1.7.0 this string in logback.xml was commented. Uncomment it and it will be ok
Created 07-23-2018 08:25 PM
Rats. I am using 1.7.0. It is already uncommented.
Created 11-21-2022 07:08 AM
Did anyone have fix to this issue? I am encountering it also. I am using NiFi 1.16.1. The nifi-app.log is exceeding the 100MB maxFile in the setting.