Solved! Go to Solution.
This can be configured in two types of config files depending on the component for which you want to change this.
Private Cloud Operations Guide has instructions for making changes to the default values for various components under the heading Log File Maintenance
This can be configured in two types of config files depending on the component for which you want to change this.
Private Cloud Operations Guide has instructions for making changes to the default values for various components under the heading Log File Maintenance
Along with logback.xml, do we need to configure any other file?
You could always configure logrotate. An example of logrotate configuration that doesn't require a service restart is given below:
Rolls every day unless the log is empty, keeps 30 logs compresses (but waits in case a process is still writing to the log) and uses copytruncate to prevent needing a service restart...
/opt/apigee/var/log/apigee-zookeeper/zookeeper.log { daily missingok rotate 30 compress delaycompress notifempty nocreate copytruncate }
I have created logrotate.conf at /opt/apigee/apigee-zookeeper/source/conf/, still nothing gets performed.
/opt/apigee/var/log/apigee-zookeeper/*.log {
daily
rotate 30
missingok
dateext
copytruncate
compress
olddir /opt/apigee/var/log/apigee-zookeeper/OLD/ }
Please someone help me if above setup is wrong (or) did I miss any other prerequisites to get effect of above log rotation settings.
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |