To modify the size of log files or the number of files that are retained, you must modify the vCloud Connector server or node configuration files.

The original configuration file is backed up.

1

Open the server or node console and log in as admin.

The default password is vmware.

2

For vCloud Connector server, navigate to /usr/local/tcserver/vfabric-tc-server-standard/server/webapps/hcserver/WEB-INF/classes/logback.xml.

3

For vCloud Connector node, navigate to /usr/local/tcserver/vfabric-tc-server-standard/agent/webapps/agent/WEB-INF/classes/logback.xml

4

Adjust the appropriate values in the following XML sections.

<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
     <fileNamePattern>/opt/vmware/hcserver or hcagent/logs/hcs.%i.log.zip or hca.%i.log.zip</fileNamePattern>
     <minIndex>1</minIndex>
     <maxIndex>9</maxIndex>
 </rollingPolicy>

<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
     <maxFileSize>10MB</maxFileSize>
</triggeringPolicy>

To modify the number of files to retain, change rollingPolicy/maxIndex to the desired number.

To modify the size of log files, change triggeringPolicy/maxFileSize to the desired size.

Note

This is the size of a single file, so the total log size could be as large as this value times the maxNumber value. Archived log files are zipped, however, so the total log size is usually much smaller.

5

Save the file. You do not need to restart.