8.2 Setting the Oracle Private Cloud Appliance Logging Parameters

When troubleshooting or if you have a support query open, you may be required to change the logging parameters for your Oracle PCA. The settings for this are contained in /etc/ovca.conf, and can be changed using the CLI.

The following instructions must be followed for each of the two management nodes in your environment.

Changing the Oracle Private Cloud Appliance Logging Parameters for a Management Node

  1. Gain command line access to the management node. Usually this is achieved using SSH and logging in as the root user with the global Oracle PCA password.

  2. Use the CLI, as described in Chapter 4, The Oracle Private Cloud Appliance Command Line Interface (CLI), to view or modify your appliance log settings. The CLI safely reads and edits the /etc/ovca.conf file, to prevent the possibility of configuration file corruption.

    • To view the current values for the configurable settings in the configuration file run the CLI as follows:

      # pca-admin show system-properties
    • To change the log level:

      # pca-admin set system-property log_level service LEVEL

      The service argument is the log file category to which the new log level applies. The following services can be specified: backup, cli diagnosis, monitor, ovca, snmp, syncservice.

      The LEVEL value is one of the following: DEBUG, INFO, WARNING, ERROR, CRITICAL.

    • To change the log file size:

      # pca-admin set system-property log_size SIZE

      Where SIZE, expressed in MB, is a number from 1 to 512.

    • To change the number of backup log files stored:

      # pca-admin set system-property log_count COUNT

      Where COUNT is a number of files ranging from 0 to 100.

    • To change the location where log files are stored:

      # pca-admin set system-property log_file service PATH

      Where PATH is the new location where the log file for the selected service is to be stored. The following services can be specified: backup, cli, diagnosis, monitor, ovca, snmp, and syncservice.

      Caution

      Make sure that the new path to the log file exists. Otherwise, the log server stops working.

      The system always prepends /var/log to your entry. Absolute paths are converted to /var/log/PATH.

      During management node upgrades, the log file paths are reset to the default values.

  3. The new log level setting only takes effect after a management node has been rebooted or the service has been restarted by running the service ovca restart command on the active management node shell.