...
This section describes how to configure the Abiquo webapp logs to reduce the size of logs these files and periodically delete old webapp log files. Customers must determine their own logging requirements and configure the webapp logs in their environment appropriately.
Tip | ||
---|---|---|
| ||
The Abiquo Logs are described in detail the Troubleshooting section of this wiki. |
...
Set the maxHistory size for each log file by adding a line after maxFileSize and changing the replacing \{NUMBER OF FILES TO KEEP} as shown in the example belowwith a suitable number, for example, 30.
Code Block | ||
---|---|---|
| ||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${catalina.base}/logs/nodecollector-%d{yyyy-MM-dd}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>50MB</maxFileSize> <maxHistory>{NUMBER OF FILES TO KEEP}</maxHistory> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> |
...
This section describes how to calculate the disk space requirements for the webapp logs. Customers must determine their own logging requirements.
If you set 30 days (expected) as retention time the retention for webapps' logs to 30, the worst-case scenario for disk space is:
...