In our environment, the logs files are overwritten fast and we are missing some crucial logs information while investigating issues, specially when DEBUG is enabled.
How can we keep more logs?
4.x
By default, ConnectALL is configured to automatically rollover & compress log files when they reach a certain size. This behavior applies to all log files located under: ../ConnectALL/Core/logs/
Default Log Rollover Configuration:
As a result, for each automation you may see up to 11 log files (1 active + 10 rolled over).
Disk Space Considerations:
In environments with multiple automations, log files can accumulate quickly and may consume significant disk space. If disk space becomes full, it can adversely affect ConnectALL services.
Customising Log Rollover Settings:
You can modify the log rollover configuration by updating the following file: ../ConnectALL/Core/conf/log4j2.xml
Adjust the highlighted parameters as needed:
<SizeBasedTriggeringPolicy size="100MB"/>
<DefaultRolloverStrategy max="10"/>
After making changes, restart the ConnectALL Core service for the updates to take effect.
Recommendation:
Review and tune these settings based on your environment, number of automations, and available disk space to prevent storage issues and ensure uninterrupted ConnectALL operation.