vApp Logs Rotation cycle
search cancel

vApp Logs Rotation cycle

book

Article ID: 133556

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

What is the rotation cycle and size of those logs in virtual appliance?

vApp main log:
/opt/CA/VirtualAppliance/logs/ca_vapp_main.log

vApp deployment log:
/opt/CA/VirtualAppliance/logs/ca_vapp_deployment.log

vApp web-server log:
/opt/CA/VirtualAppliance/logs/ca_vapp_webui.log



Environment

Release : 14.x

Component : Identity Manager virtual appliance

Resolution

This is implemented by logrotate.
They will be rotated at the size of 10 Mb and 50 files are kept.

As the config user does not have write access to this file, we cannot modify them.

:~ > cat  /etc/logrotate.d/vapp

/opt/CA/VirtualAppliance/logs/*.log {
    size 10M
    rotate 50
    dateext
    dateformat -%Y-%m-%d
    compress
    missingok
    notifempty
    delaycompress
}

/opt/CA/VirtualAppliance/centralLogs/vapp_central.log {
    daily
    rotate 365
    dateext
    dateformat -%Y-%m-%d
    compress
    missingok
    notifempty
    delaycompress
}