You can change the log rolling capacity that vCloud Usage Meter allots to increase or decrease the amount of log history recorded.

About this task

vCloud Usage Meter allots 100 MB for log activity, before deleting the older log history. Do not reduce below this log rolling capacity. Increasing the log rolling capacity can be useful when the log level is also increased. For more information about logging levels, see Change vCloud Usage Meter Logging Level.

Procedure

  1. In the vSphere Web Client, start the vCloud Usage Meter remote console.
  2. Log in as the usgmtr user.
  3. Edit the /usr/share/tomcat/webapps/um/WEB-INF/classes/log4j.properties file.
  4. Change the capacity.

    Option

    Description

    log4j.appender.rootRoll.MaxFileSize=10MB

    Enter a new maximum file size.

    log4j.appender.rootRoll.MaxBackupIndex=10 

    Enter a new maximum backup index.

    log4j.appender.rootRollWarn.MaxFileSize=10MB

    Enter a new maximum file size.

    log4j.appender.rootRollWarn.MaxBackupIndex=10 

    Enter a new maximum backup index.

    log4j.appender.rulesRoll.MaxFileSize=10MB

    Enter a new maximum file size.

    log4j.appender.rulesRoll.MaxBackupIndex=10 

    Enter a new maximum backup index.

    log4j.appender.treeRoll.MaxFileSize=10MB

    Enter a new maximum file size.

    log4j.appender.treeRoll.MaxBackupIndex=10 

    Enter a new maximum backup index.

    log4j.appender.collectorRoll.MaxFileSize=10MB

    Enter a new maximum file size.

    log4j.appender.collectorRoll.MaxBackupIndex=10 

    Enter a new maximum backup index.

What to do next

Review log history and consider changing the log rolling capacity back to the default capacity to conserve resources.