Cloud Proxy log rotation/ file size setting does not work as documented.

book

Article ID: 224062

calendar_today

Updated On:

Products

DX SaaS

Issue/Introduction

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/migrate-agents-using-cloud-proxy.html

The documented settings don't work as described. When I increase the file size, it still remains at 10MB to roll. Also, when I reduce the days to keep files, they don't get removed and many days are kept.

# Logging
logging.file.max-history: 1
logging.file.total-size-cap: 5GB
#logging.level.com.ca.apm.cloudproxy: DEBUG

 

Update the Log File History and Size
Open ./
config/application.yml
 and then add the following hidden properties:
logging.file.max-history:<number-of-days>
By default, the log files rotate when they reach 10 MB. The rotated log files are retained for seven days, unless you update the value of this setting.
Example:
 logging.file.max-history:14
In this example, the log files are retained for 14 days.
logging.file.total-size-cap:<size-in-bytes-including-units>
Define the size of the total log archive. When the archive size exceeds the threshold, backups are deleted. The supported units are: byte; kilobyte; megabyte; gigabyte; terabyte
Example
: logging.file.total-size-cap:1GB
In this example, when the total log archive size exceeds 1GB the backups get deleted.
 

Cause

Document is not clear 

Environment

Release : SAAS

Component :

Resolution

For maximum log file size, use 'logging.file.max-size' property.

 

logging.file.total-size-cap is the total size of log backups to be kept.

Changes added to the guide as well: