XRAY: Log rotation for JFrog Xray
Subject :
How to Customize the log rotation for JFrog Xray in 2.x and 3.x versions.
Description :
For 3.x Xray versions
In Xray 3.x versions, the log rotation can be customized for each microservice in the system.yaml file located under
Example for one of the microservice.## XRAY PERSIST TEMPLATE
persist:
logging:
rotation:
#compress: true
#maxSizeMb: 25
#maxFiles: 10
For 2.x Xray versions
Log rotation can be customized based on your requirement (default log rotation is enabled on a daily basis) for each microservice logs in the
Example :
Modifying the ‘rotate’, ‘daily’ and ‘maxbackup’ properties, etc … and log location can be changed by giving the different path in the property ‘filename’
Micro Services:
analysis_log4go_config.xml
indexer_log4go_config.xml
server_log4go_config.xml
persist_log4go_config.xml
Properties:
rotate The number of rotation logs to keep.
maxsize Maximum size of the file in megabytes.
maxlines Maximum line of the file in megabytes.
maxbackup Maximum number of backup
filename Modify the path of the log location
