This article provides information about the logs that are recommended to be collected before opening a JSA/STRM case with Juniper Technical Assistance Center (JTAC).
What information is needed to troubleshoot JSA/STRM issues?
Depending on the current working directory and the version running, there are three ways to execute the script:
# /opt/qradar/support/get_logs.sh
# sh /opt/qradar/support/get_logs.sh
# cd /opt/qradar/support/ and execute the script ./get_logs
If you get any errors after running the script, you can download the 6.1 version of the script and run it with the full path from any directory on any supported version of JSA. Place the tar file in /opt/qradar/support , and then follow the instructions below to decompress and run the script.
/opt/qradar/support
# tar zxvf get_log.tgz # /opt/qradar/support/get_logs.sh
The get_logs.sh script gathers all the logs and data needed for review and saves a log file in one of these locations depending on the current version running:
get_logs.sh
/var/log/logs_<hostname>_<YYYMMDD>.tar.bz2 or /store/LOGS/logs_<hostname>_<YYYMMDD>_random-number.tar.bz2
To encrypt this log file, run the script with the " -e " option:
-e
Example:
/opt/qradar/support/get_logs.sh -e
This saves the log file in encrypted format: /store/LOGS/logs_jsa_20190915_b7ae85e4.tar.bz2.enc
/store/LOGS/logs_jsa_20190915_b7ae85e4.tar.bz2.enc
To decrypt this file, copy it to a Linux host and run:
# openssl enc -d -blowfish -in filename -out logs.tgz -pass pass:[file_date]
# openssl enc -d -blowfish -in /store/LOGS/logs_jsa_20190915_b7ae85e4.tar.bz2.enc -out logs.tgz -pass pass:20190915
Provide the tar.bz2.enc file when opening a JTAC case.
tar.bz2.enc
Starting from JSA 7.2.8 and later , you can collect troubleshooting logs from the JSA web page :
Navigate to Admin > in the System Configuration section. Click System and License Management > in the Display list. Then select Systems.
If you have an HA-setup, click the HA host > Actions > Collect Log Files .
Click Advanced Options and select the options for the log file collection.
Encrypted log file collections can be decrypted only by Support. If you want access to the log file collection, do not encrypt the file.
Click Collect Log Files .
Under System Support Activities Messages, a message indicates the status of the collection process.
To download the log file collection, wait for the "Log file collection completed successfully" notification, and click Click here to download files .
In addition to the get_logs script log file, provide the following information as well, depending on the issue:
get_logs
For HA issues:
/opt/qradar/ha/ha.log
/opt/qradar/ha/ha.conf
For WebUI/Tomcat issues:
/opt/imq/var/instances/imqbroker/log/log.txt/var/log/qradar-sql.log
/opt/tomcat5/logs/catalina.out/opt/tomcat6/logs/catalina.out/var/log/tomcat.log
For Setup issues, add the -s flag to the get_logs command:
-s
/opt/qradar/support/get_logs.sh -s
For Flow issues:
/var/log/qflow.debug
For DSM/VIS issue:
# rpm -qa | egrep -i dsm
# rpm -qa | egrep -i vis
For Hardware issues:
/var/log/messages/
/store/LOGS folder
Output from the following:
# dmesg# dmidecode
For License issues:
/opt/qradar/conf/license.key
For User Permission issues:
/opt/qradar/conf/user*.conf
2021: Included additional information about running the script depending on the current working directory and the version running, and what to do if there are errors
2019-09-20: Removed commands that were applicable to older (EOL/EOS) versions of STRM
2019-07-06: Added method to collect logs from JSA webpage for versions 7.2.8 and later