Table of Contents

Search

  1. Preface
  2. Installation Overview
  3. Before You Begin
  4. Pre-Installation Tasks
  5. Data Integration Hub Installation
  6. Post-Installation Tasks
  7. Upgrading Data Integration Hub
  8. Starting and Stopping Data Integration Hub
  9. Optional Data Integration Hub Configuration
  10. Installing and Configuring the Data Integration Hub Accelerator for Data Archive
  11. Troubleshooting the Data Integration Hub Installation
  12. Uninstallation

Installation and Configuration Guide

Installation and Configuration Guide

Adding an SNMP Appender to the log4j.xml File

Adding an SNMP Appender to the log4j.xml File

Add an SNMP appender to the
Data Integration Hub
server or Operation Console copies of the log4j.xml file to customize the output destination for log messages.
  1. Back up the log4j.xml file that you want to edit from one of the following locations:
    • Data Integration Hub
      server:
      <
      DIH
      InstallationDir>/conf
    • Operation Console:
      <
      DIH
      InstallationDir>/
      DataIntegrationHub
      /tomcat/shared/classes
  2. Open the file in a text editor and search for the following text:
    SNMP_TRAP is a sample appender
  3. To edit the sample appender with the actual values of your appender, remove the comment indicators from the SNMP_TRAP appender and edit the appender parameters and values based on your requirements.
    You can also add an appender below the sample appender instead of editing the sample appender.
  4. To set the formatting of the log messages, edit the layout element.
    The following example shows the layout element of the sample appender:
    <layout class="org.apache.log4j.PatternLayout">    <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] {%t} %m%n"/> </layout>
    For information about the layout pattern options, see the description on the Apache Website: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
  5. To activate the appender, search for the following text:
    <root>
  6. Add the appender name to the appender list.
    The following example shows the appender list after you add the appender name:
    <root>    <priority value="INFO"/>    <appender-ref ref="BROKER-LOG"/>    <appender-ref ref="CONSOLE"/>    <appender-ref ref="SNMP_TRAP"/> </root>
  7. Save the log4j.xml file.
After you add the SNMP appender, configure your SNMP manager to listen for the log messages.

Back to Top

0 COMMENTS

We’d like to hear from you!