Question
Nifi Log Rotation
I need to configure nifi for log rotation. I have seen this article: Understanding how the logback.xml configuration in... - Cloudera Community - 248662
Here I have few doubts regarding the property.
<maxHistory>30</maxHistory>
It's mentioned in comments as
<!-- keep 30 log files worth of history -->
But on checking I have come across a document logback.xml Example - Mkyong.com where its mentioned as
<!-- each archived file, size max 10MB -->
<maxFileSize>10MB</maxFileSize>
<!-- total size of all archive files, if total size > 20GB, it will delete old archived file -->
<totalSizeCap>20GB</totalSizeCap>
<!-- 60 days to keep -->
<maxHistory>60</maxHistory>
So, my doubt is does maxhistory refers to number of file or number of days. Also do we really need to add totalSizeCap because anyway we are adding maxhistory and maxfilesize.

