Enabling console logging and changing the log level for the EIF receiver

By default, the Event Integration Facility (EIF) receiver logging is contained in the UnityEifReceiver.log file located in <HOME>/IBM®/LogAnalysis/logs directory. This topic outlines how enable and configure the console logging for IBM Operations Analytics Log Analysis.

About this task

You can configure console logging by updating the log4j.properties file in the <HOME>/IBM/LogAnalysis/UnityEIFReceiver/jars directory. The default logging level is set to INFO. To configure console logging:

Procedure

  1. Use the following command to stop IBM Operations Analytics Log Analysis processes:

    <HOME>/IBM/LogAnalysis/utilities/unity.sh -stop

  2. Open the log4j.properties file.
  3. To enable console logging, locate the line:
    log4j.logger.Unity=INFO,UNITY_FILE
  4. Edit this line to read:
    log4j.logger.Unity=INFO,UNITY_FILE,UNITY_CONSOLE
  5. (Optional) Update the logging level to ERROR, DEBUG, TRACE, or WARN as required.
  6. Save the file.
  7. Use the following command to restart IBM Operations Analytics Log Analysis:

    <HOME>/IBM/LogAnalysis/utilities/unity.sh -restart