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.