There is a requirement to send NIM-SM application logs to an external SIEM tool, such as IBM Security QRadar, for threat detection and monitoring. By default, NIM-SM stores logs locally and does not forward them to external Syslog collectors.
NIM-SM uses the Log4j2 framework for internal logging. Forwarding logs to a remote server requires the addition of a specific "Syslog Appender" within the application's configuration file.
To enable log forwarding, you must modify the log4j2.xml file within the NIM-SM deployment.
Locate the Configuration File: Navigate to the following directory in your NIM-SM installation (usually within the web server's webapps directory): ca-nim-sm/WEB-INF/config/log4j2.xml
Add a Syslog Appender: Edit the log4j2.xml file to include a new Appender entry. Specify the QRadar (or SIEM) server IP address and the destination port (default is 514).
Example Configuration Snippet:
Update the Loggers Section: Ensure that the <Loggers> section of the XML file references the new QRadarAppender so that events are actively sent.
Restart Services: Restart the web server (e.g., Apache Tomcat) where NIM-SM is running to apply the changes.
Verification: Check the "Log Activity" tab in QRadar to confirm that logs from the NIM-SM host are being received.
ca-nim-sm.war file is redeployed or upgraded, manual changes to the WEB-INF/config directory may be overwritten. It is recommended to back up your modified log4j2.xml before maintenance.