Changing the properties of logs

Ops Center Installation and Configuration Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99OPS001-23
You can change the properties of Common Services logs to change how the logs are output.
  1. Log in to the management server as the root user.
    If you log in as an ordinary user, use the sudo command to complete the following procedure as the root user.
  2. Edit the following properties file.

    /var/installation-directory-of-Common-Services/userconf/config_user.properties

    For example, for an OVA install uses the following file:

    /var/opt/hitachi/CommonService/userconf/config_user.properties

    The properties of logs are as follows:

    Property

    Description

    CS_PORTAL_LOG_LEVEL_DEBUG

    Specify the level for which the debug log is to be output.

    You can specify one of the following values (listed in descending order of detail level): TRACE, DEBUG, and INFO.

    Default value: DEBUG

    CS_PORTAL_LOG_MAX_FILESIZE

    Specify the maximum size of each log file.

    When the size of a log file exceeds the specified size, a new log file is created.

    The value of this property must be specified in the form of an integer and a unit.

    You can specify KB, MB, or GB for the unit. KB, MB, and GB correspond to KiB, MiB, and GiB, respectively. If you do not specify a unit, the unit is assumed to be bytes.

    Default value: 20MB

    CS_PORTAL_LOG_MAX_INDEX_ERROR

    Specify the maximum number of error log backups to keep.

    When the error log file reaches the maximum size specified for the CS_PORTAL_LOG_MAX_FILESIZE property, a backup of the file is created, where the name of the backup file is the original file name with a number appended to the end. Each time the log file reaches the maximum size, a new backup file is created until the number of backup files reaches the number specified for this property. After this number of backup files is reached, each time a new backup file is created, the oldest backup file is deleted.

    You can specify a value in the range from 1 to 21.

    Default value: 10

    CS_PORTAL_LOG_MAX_INDEX_DEBUG

    Specify the maximum number of debug log backups to keep.

    When the debug log file reaches the maximum size specified for the CS_PORTAL_LOG_MAX_FILESIZE property, a backup of the file is created, where the name of the backup file is the original file name with a number appended to the end. Each time the log file reaches the maximum size, a new backup file is created until the number of backup files reaches the number specified for this property. After this number of backup files is reached, each time a new backup file is created, the oldest backup file is deleted.

    You can specify a value in the range from 1 to 21.

    Default value: 20

    CS_PORTAL_LOG_MAX_INDEX_APPLOG

    Specify the maximum number of server log backups to keep.

    When the server log file reaches the maximum size specified for the CS_PORTAL_LOG_MAX_FILESIZE property, a backup of the file is created, where the name of the backup file is the original file name with a number appended to the end. Each time the log file reaches the maximum size, a new backup file is created until the number of backup files reaches the number specified for this property. After this number of backup files is reached, each time a new backup file is created, the oldest backup file is deleted.

    You can specify a value in the range from 1 to 21.

    Default value: 20

  3. Restart the Common Services service.