Question & Answer
Question
Answer
- How to collect log files from the user interface?
- How to collect log files from the command line interface (get_logs.sh)?
- How to collect the additional required CLI commands output?
Note: for general Qradar cases (not dealing with Qradar application issues), reference the following guide:
Getting Help: What information should be submitted with a QRadar service request?
How to collect log files from the user interface?
- Log in to your QRadar console as an admin.
- Click the Admin tab.
- Click System and license Management.
- Select the QRadar Console and App host appliances to collect logs from the user interface.
Note: You can use Shift + click or Ctrl + click to get logs from multiple appliances. Select Actions > Collect log files

Open the Advanced Options and select the Include Application Extension Logs, Include Debug Logs, Include Setup Logs (Current Version) checkbox, and set Collect Logs for this Many Days to 5.

- Copy the file tar.gz, which is stored in the /store/LOGS/ directory, to a system that has access to an external network to upload your log file.
How to collect log files from the command line interface (get_logs.sh)?
To collect logs from the command line, root access is required. The get_logs.sh utility is available on every version of QRadar and can be run on each appliance individually to collect logs. If you are having user interface issues, use this utility as a backup when the QRadar Console to submit logs for your appliance.
- SSH to the Console appliance as the root user.
Type the following command:
/opt/qradar/support/get_logs.sh -Das -q 5The script informs you that the log was created and provides the name and the location, which is always the /store/LOGS/ directory.
INFO: Gathering install information... INFO: Collecting DrQ output... INFO: Collecting system files... INFO: Collecting old files... INFO: Collecting Cert metadata... INFO: Collecting thread dumps from running java processes... INFO: Collecting database information... ... INFO: Compressing collected files... The file /store/LOGS/logs_apphost_20230713_d290fd0a.tar.gz (16M) has been created to send to supportFor a list of options that can be run, enter the following command.
/opt/qradar/support/get_logs.sh -h
- Copy the tar.gz file to a system that has access to an external network to upload your log file.
ALL-IN-ONE ENVIRONMENT
Enter the following commands on your Console and save the output to a text file.
qappmanageroutputEnter the following command on your Console and save the output to a text file
./opt/qradar/support/qappmanagerNote:
- This command places you in a menu. To exit the qappmanager menu and return to the normal command prompt, enter 0.
This command includes a menu output that is not necessary to send to support. Ensure that you include all information listed in the APP DEFINITIONS and the APP INSTANCES sections:
APP DEFINITIONS (SIO=Single Instance Only, MTS=Multi-tenancy Safe): ID | Name | Version | Status | Installed | Memory | Instances | SIO | MTS | Errors ------------------------------------------------------------------------------------------------------------------------ 1102 | QRadar Assistant | 3.5.2 | COMPLETED | 2023-04-27 16:38 | 600 | 1 | t | t | 1103 | QRadar Use Case Manager | 3.7.0 | COMPLETED | 2023-04-27 16:50 | 500 | 1 | f | f | 1151 | QRadar Log Source Management | 7.0.7 | COMPLETED | 2023-05-15 11:56 | 100 | 1 | t | t | APP INSTANCES (IID=Instance ID, DID=Definition ID, MHN=Managed Host Name, AHT=Application Host Type, SP=Security Profile): IID | DID | Name | Status | Task Status | Installed | MHN | AHT | Memory | SP | Errors ------------------------------------------------------------------------------------------------------------------------------------------------- 1102 | 1102 | QRadar Assistant | RUNNING | COMPLETED | 2023-04-27 16:38 | qradar-qr750-3199-29271 | LOCAL | 600 | | 1103 | 1103 | QRadar Use Case Manager | RUNNING | COMPLETED | 2023-04-27 16:50 | qradar-qr750-3199-29271 | LOCAL | 500 | | 1151 | 1151 | QRadar Log Source Management | RUNNING | COMPLETED | 2023-05-15 11:56 | qradar-qr750-3199-29271 | LOCAL | 100 | | Total memory used by LOCAL app instances: 1200MB
- Registry catalog output
For Qradar 7.4.2+, run the following command on the console.
curl https://console.localdeployment:5000/v2/_catalog --key /etc/docker/tls/registry/docker-client-registry.key --cert /etc/docker/tls/registry/docker-client-registry.certFor Qradar 7.5.0 UP8+, run the following command on the console.
curl -v https://console.localdeployment:5000/v2/_catalog --key /etc/podman/tls/registry/podman-client-registry.key --cert /etc/podman/tls/registry/podman-client-registry.cert
- Certificate verification output.
For Qradar 7.4.2+, run the following command on the console.
for i in $(/opt/qradar/ca/bin/si-qradarca list -print | grep -v /etc/httpd-qif/tls//httpd-qif.cert | grep -v /etc/ziptie-server/tls/certs/ziptie-server.cert | awk -F, '{print $4}' | sort | uniq); do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; doneFor Qradar 7.5.0 UP8+, run the following command on the console.
for i in $(/opt/qradar/ca/bin/si-qradarca list -print | grep -v /etc/ziptie-server/tls/certs/ziptie-server.cert | grep -v /etc/httpd-qrm/tls/cert.cert | awk -F, '{print $4}' | sort | uniq); do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; done
- Certificate keystore verification output.
Enter the following command on your Console and save the output to a text file
./opt/qradar/support/app_keystore_cert_validator.sh
APPHOST ENVIRONMENT
Enter the following commands on your Console and save the output to a text file.
qappmanageroutputEnter the following command on your Console and save the output to a text file
./opt/qradar/support/qappmanagerNote:
- This command places you in a menu. To exit the qappmanager menu and return to the normal command prompt, enter 0.
This command includes a menu output that is not necessary to send to support. Ensure that you include all information listed in the APP DEFINITIONS and the APP INSTANCES sections:
APP DEFINITIONS (SIO=Single Instance Only, MTS=Multi-tenancy Safe): ID | Name | Version | Status | Installed | Memory | Instances | SIO | MTS | Errors ------------------------------------------------------------------------------------------------------------------------ 1102 | QRadar Assistant | 3.5.2 | COMPLETED | 2023-04-27 16:38 | 600 | 1 | t | t | 1103 | QRadar Use Case Manager | 3.7.0 | COMPLETED | 2023-04-27 16:50 | 500 | 1 | f | f | 1151 | QRadar Log Source Management | 7.0.7 | COMPLETED | 2023-05-15 11:56 | 100 | 1 | t | t | APP INSTANCES (IID=Instance ID, DID=Definition ID, MHN=Managed Host Name, AHT=Application Host Type, SP=Security Profile): IID | DID | Name | Status | Task Status | Installed | MHN | AHT | Memory | SP | Errors ------------------------------------------------------------------------------------------------------------------------------------------------- 1102 | 1102 | QRadar Assistant | RUNNING | COMPLETED | 2023-04-27 16:38 | qradar-qr750-3199-29271 | LOCAL | 600 | | 1103 | 1103 | QRadar Use Case Manager | RUNNING | COMPLETED | 2023-04-27 16:50 | qradar-qr750-3199-29271 | LOCAL | 500 | | 1151 | 1151 | QRadar Log Source Management | RUNNING | COMPLETED | 2023-05-15 11:56 | qradar-qr750-3199-29271 | LOCAL | 100 | | Total memory used by LOCAL app instances: 1200MB
- Registry catalog output
For Qradar 7.4.2+, run the following command on the console.
curl https://console.localdeployment:5000/v2/_catalog --key /etc/docker/tls/registry/docker-client-registry.key --cert /etc/docker/tls/registry/docker-client-registry.certFor Qradar 7.5.0 UP8+, run the following command on the console.
curl -v https://console.localdeployment:5000/v2/_catalog --key /etc/podman/tls/registry/podman-client-registry.key --cert /etc/podman/tls/registry/podman-client-registry.cert
- Certificate verification output.
For Qradar 7.4.2+, run the following command on the console.
for i in $(/opt/qradar/ca/bin/si-qradarca list -print | grep -v /etc/httpd-qif/tls//httpd-qif.cert | grep -v /etc/ziptie-server/tls/certs/ziptie-server.cert | awk -F, '{print $4}' | sort | uniq); do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; doneFor Qradar 7.5.0 UP8+, run the following command on the console.
for i in $(/opt/qradar/ca/bin/si-qradarca list -print | grep -v /etc/ziptie-server/tls/certs/ziptie-server.cert | grep -v /etc/httpd-qrm/tls/cert.cert | awk -F, '{print $4}' | sort | uniq); do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; done
- Certificate keystore verification output.
Enter the following command on your Console and save the output to a text file
./opt/qradar/support/app_keystore_cert_validator.sh
Enter the following commands on your app host and save the output to a text file.
- Registry catalog output
For Qradar 7.4.2+, run the following command on the app host.
curl https://console.localdeployment:5000/v2/_catalog --key /etc/docker/tls/registry/docker-client-registry.key --cert /etc/docker/tls/registry/docker-client-registry.certFor Qradar 7.5.0 UP8+, run the following command on the app host.
curl -v https://console.localdeployment:5000/v2/_catalog --key /etc/podman/tls/registry/podman-client-registry.key --cert /etc/podman/tls/registry/podman-client-registry.cert
- Certificate verification output
For Qradar 7.4.2+, run the following command on the app host.
for i in $(find /etc/conman/tls /etc/traefik/tls /etc/docker/tls /etc/httpd/conf/certs /etc/pki/ca-trust/source/anchors -type f \( -name "*.cert" -o -name "*.pem" -o -name "*.crt" ! -name si-registry_ca.crt \));do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; doneFor Qradar 7.5.0 UP8+, run the following command on the app host.
for i in $(/opt/qradar/ca/bin/si-qradarca list -print | grep -v /etc/ziptie-server/tls/certs/ziptie-server.cert | grep -v /etc/httpd-qrm/tls/cert.cert | grep -v /opt/qradar/conf/SAMLAuthentication/SP/QRadarSAML.crt | grep -v /opt/qradar/conf/SAMLAuthentication/SP/QRadarSAML_ca.crt | awk -F, '{print $4}' | sort | uniq); do echo $i; openssl verify -CAfile /etc/pki/tls/cert.pem $i; done
Contact support to open a case. In the case, include a description of the issue (what is happening and when did it start). Attach the get_logs file and the text files that contain the command outputs for docker/podman and qappmanager to the case for review.
Results: You successfully created a support case with IBM QRadar Support, populated the case with the relevant details and provided a copy of the most recent log files.
Was this topic helpful?
Document Information
Modified date:
08 September 2023
UID
ibm10740335