Cloud Proxy Log size and retention configuration
search cancel

Cloud Proxy Log size and retention configuration

book

Article ID: 219475

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Concern: Cloud Proxy Logs might fill up the drive pretty quick. 

Question:  Is there a way to control the Cloud Proxy logging size and retention days?

Environment

Release : SAAS

Component : APM SAAS ENTERPRISE, Cloud Proxy 

Cause

Configurable 

Resolution

Answer:

Per the DX SaaS Guide:

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

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