IBM Support

QRadar: How to enable the debug log for the QRadar Protocols

How To


Summary

This technote explains how to enable debug in QRadar for protocols using the script:

/opt/qradar/support/mod_log4j.pl

The script allows support teams to enable debug mode for a specific Java class or logger, collect additional troubleshooting information, and automatically disable debugging after the configured duration.

Debug output is commonly written to:

/var/log/qradar.java.debug

Objective

Debug logging in QRadar provides detailed diagnostic information about log source protocol operations. This enhanced logging captures internal processing details, connection states, data parsing activities, and error conditions that are not visible in standard logs.
 

Steps

Pre-Debug Verification

Before enabling debug logging, it's important to check if a debug file already exists and manage it appropriately.

Step 1: Check for Existing Debug File

SSH to the QRadar system where the log source is configured and check if the debug file exists:

ls -lh /var/log/qradar.java.debug

Expected Output (if file exists):

-rw-r--r-- 1 root root 245M May 07 14:23 /var/log/qradar.java.debug

Expected Output (if file does not exist):

ls: cannot access /var/log/qradar.java.debug: No such file or directory

 

Step 2: Clear the Debug File

Clear the existing debug file to ensure you're capturing only new debug information:

echo " " > /var/log/qradar.java.debug

Verify the file is cleared:

ls -lh /var/log/qradar.java.debug

Expected Output:

-rw-r--r-- 1 root root 2 May 07 14:26 /var/log/qradar.java.debug

 


Enable Debug Steps

1. Identify the logger class

Before enabling debug, confirm the Java class or logger that needs to be debugged.

Example for HTTP Receiver:

 
com.q1labs.semsources.sources.httpreceiver
 
 

List of Logging Classes for Debug

LOG SOURCE PROTOCOLCLASSSECONDARY CLASS
Akamai Kona RESTAPIcom.q1labs.semsources.sources.akamaikonarestapi 
Alibaba Cloud Object Storage Service com.q1labs.semsources.sources.alibabacos 
Alibaba Simple Log Servicecom.q1labs.semsources.sources.alibabasls 
Amazon AWS REST APIcom.q1labs.semsources.sources.amazonawsrest 
Amazon Web Services Protocolcom.q1labs.semsources.sources.amazonwebservices 
Apache Kafkacom.q1labs.semsources.sources.apachekafka 
Ariel REST APIcom.q1labs.semsources.sources.arielrestapi 
Blue Coat Web Security Service REST APIcom.q1labs.semsources.sources.bluecoatwssrestapi 
Box REST APIcom.q1labs.semsources.sources.boxrestapi 
Centrify RedRock RESTAPI Configurationcom.q1labs.semsources.sources.centrifyredrockrestapi 
Cisco Duocom.q1labs.semsources.sources.ciscoduo 
Cisco NSELcom.q1labs.semsources.sources.nsel 
Commoncom.q1labs.semsources.sources.utilscom.q1labs.semsources.sources.build
EMCVMWarecom.q1labs.semsources.sources.vmware 
Estreamercom.q1labs.semsources.sources.estreamer 
Google Commoncom.q1labs.semsources.sources.googlebase 
Google Cloud Pub / Subcom.q1labs.semsources.sources.google.cloud.pubsub 
Google GSuite Activity Reports REST APIcom.q1labs.semsources.sources.googlegsuiteactivityreportsrestapi 
HTTP Receivercom.q1labs.semsources.sources.httpreceiver 
IBM BigFix EDR REST APIcom.q1labs.semsources.sources.ibmbigfixedrrestapi 
IBM Cloud Object Storagecom.q1labs.semsources.sources.ibmcos.IBMCloudObjectStorageSource 
IBM Fiberlink REST API (MaaS360)com.q1labs.semsources.sources.ibmfiberlinkrestapi 
IBM Security Identity Manager (ISIM)com.q1labs.semsources.sources.ibmsimjdbc 
IBM Security ReaQta RESTAPIcom.q1labs.semsources.sources.ibmsecurityreaqtarestapi 
IBM Security Verify (old: Cloud Identity)com.q1labs.semsources.sources.ibmcloudidentityeventservice 
IBM SmartCloud Orchestratorcom.q1labs.semsources.sources.ibmsmartcloudorchestratorrestapi 
IBM Tivoli Endpoint Manager (Big Fix)com.q1labs.semsources.sources.temsoap 
JDBCcom.q1labs.semsources.sources.jdbc 
JDBC Sophoscom.q1labs.semsources.sources.jdbcsophos 
JDBC Observe ITcom.q1labs.semsources.sources.observeitjdbc 
JDBC Ahnlab Policy Centercom.q1labs.semsources.sources.ahnlabpolicycenterjdbc 
JuniperBinarycom.q1labs.semsources.sources.juniperbinary 
JuniperNSMcom.q1labs.semsources.sources.JuniperNSM 
Logfile Protocol (LFP)com.q1labs.semsources.sources.hptandemcom.q1labs.semsources.sources.remote
Microsoft Azure Event Hubscom.q1labs.semsources.sources.microsoftazureeventhubs 
Microsoft Graphs APIcom.q1labs.semsources.sources.microsoftgraphsecurityapi 
Microsoft DHCPcom.q1labs.semsources.sources.windowsdhcp 
Microsoft IIScom.q1labs.semsources.sources.windowsiis 
MQ JMScom.q1labs.semsources.sources.mqjms 
MSRPCcom.q1labs.semsources.sources.windowseventrpc 
Netskope Active Rest APIcom.q1labs.semsources.sources.netskopeactiverestapi 
Office 365 Message Trace REST APIcom.q1labs.semsources.sources.office365messagetracerestapi 
Office 365 REST APIcom.q1labs.semsources.sources.office365restapi 
Okta REST APIcom.q1labs.semsources.sources.oktarestapi 
OPSEC LEA - Check Point Firewallcom.q1labs.semsources.sources.LEA 
Oracle DB Listenercom.q1labs.semsources.sources.oracle 
PCAPcom.q1labs.semsources.sources.pcapsyslog 
RabbitMQcom.q1labs.semsources.sources.rabbitmq 
Salesforce REST APIcom.q1labs.semsources.sources.salesforcerestapi 
SAP ETD Alert APIcom.q1labs.semsources.sources.sapetdalertapi 
SDEE Protocolcom.q1labs.semsources.sources.SDEE 
Seculert Protection REST APIcom.q1labs.semsources.sources.seculertprotectionrestapi 
SMB Tailcom.q1labs.semsources.sources.smbtail 
SNMPcom.q1labs.semsources.sources.SNMP 
Syslog Redirectcom.q1labs.semsources.sources.SyslogRedirect 
TCP Multilinecom.q1labs.semsources.sources.tcpmultilinesyslog 
TCP Syslogcom.q1labs.semsources.sources.tcpsyslog 
TLS Syslogcom.q1labs.semsources.sources.tlssyslog 
UDP Multilinecom.q1labs.semsources.sources.udpmultilinesyslog 
VMwarevCloudcom.q1labs.semsources.sources.vcloud 
Microsoft Defender for Endpoint (old: Windows Defender ATP RESTAPI)com.q1labs.semsources.sources.windowsdefenderatprestapi 
WindowsEventLogcom.q1labs.semsources.sources.windowseventlogcom.q1labs.semsources.sources.windowsbase
WindowsExchangecom.q1labs.semsources.sources.windowsexchange2007 
Windows Event RPC (Windows MSRPC)com.q1labs.semsources.sources.windowseventrpc 
Universal Cloud Rest APIcom.q1labs.semsources.sources.universalcloudrestapi 
 

2. Disable the affected Log Source

Before enabling debug logging, disable the log source from the QRadar Admin Console:

  1. Log in to the QRadar Console
  2. Navigate to AdminData SourcesLog Sources
  3. Locate the affected log source
  4. Click the Actions menu (three dots) → Disable
  5. Confirm the action

Why disable first? Disabling the log source ensures that when you re-enable it after activating debug mode, all new activity will be captured with debug logging enabled. This provides a clean start for troubleshooting.


3. Enable debug logging using mod_log4j.pl

SSH to the QRadar appliance and run the mod_log4j.pl command with the appropriate class name:

Syntax:

/opt/qradar/support/mod_log4j.pl -al <class_name> -w <workspace_name>


Example for HTTP Receiver:

/opt/qradar/support/mod_log4j.pl -al com.q1labs.semsources.sources.httpreceiver -w support
 

4. Validate that the debug file is generated

Go to /var/log and check whether the debug file was created or updated:

cd /var/log
ls -l qradar.java.debug
 

You can monitor the file using:

tail -f /var/log/qradar.java.debug

5. Enable the Log Source again and run the test.

Return to the QRadar Admin Console and re-enable the log source:

  1. Navigate to AdminData SourcesLog Sources
  2. Locate the disabled log source
  3. Click the Actions menu → Enable
  4. Confirm the action
  5. Run the test

The log source will now start processing events with debug logging enabled.



After collecting sufficient debug information, follow these steps to disable debug logging and preserve the data.

6. Disable debug logging after collecting data

After the required logs are collected, remove the debug configuration:

/opt/qradar/support/mod_log4j.pl -w L2_support -r
 

This removes the temporary debug logger configuration.

Note: It is suggested to disable the debug logging to avoid filling the partition. 

Result:
If you experience issues enabling/disabling the debug logging, please contact QRadar Support for assistance.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSBQAC","label":"IBM Security QRadar SIEM"},"ARM Category":[{"code":"a8m0z000000cwt0AAA","label":"Log Source"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"7.0.0;7.1.0;7.2.0;7.2.2;7.2.3;7.2.4;7.2.5;7.2.6;7.2.7;7.2.8;7.3.0;7.3.1;7.3.2;7.3.3;7.4.0;7.4.1;7.4.2;7.4.3;7.5.0"}]

Document Information

Modified date:
25 May 2026

UID

ibm17272384