Generating & Download JetPatch (Manager) Logs from the UI
If you are experiencing any issues with the JetPatch manager console, please follow the below steps and send the relevant information to the JetPatch support team.
Option 1 - JetPatch Console
Open the "Support" menu in the top right of the JetPatch Console (accessible from any page in the JetPatch Console) and click on "Download JetPatch Logs"
Option 2 - Platform Configuration
1. In platform configuration, click on Logs & Alerts
2. Click on Actions -> Prepare Log Service
Please note:
If you are not able to generate the manager logs, you will need to clean the log files in your core server, which are under /tmp folder.
- SSH to your JetPatch console
- Run the following command (please copy the following line with NO changes):
rm -rf /usr/share/tomcat/default/temp/*
- Try to download logs again
Gathering Logs from the JetPatch Server Itself
If you are unable to generate the logs from the UI, you can alternatively get the manager logs via
/usr/share/tomcat/default/logs/*
In addition, to grab the NGINX logs, we need the following files:
/var/log/nginx/access.log
/var/log/nginx/error.log
Setting Manager Logs to Debug
Note: You should only do this when asked by a JetPatch team member.
- Changing the Manager’s logging level can be done by setting the logging level in the file called: /usr/share/tomcat/default/conf/log4j2.xml
- Remember to save the original values somewhere (either in a separate document are commented out), because you will need to revert back to the original values after generating the manager logs in debug mode.
- For example, setting the log level to debug:
<Property name="LEVEL">DEBUG</Property>
<Property name="DEBUG_FILE">debugFileAppender</Property>
Replace with:
<Property name="LEVEL">DEBUG</Property>
<Property name="DEBUG_FILE">debugFileAppender</Property>
- After setting the logging level, tomcat needs to be restarted.
- Once in debug mode, please reproduce the issue and then gather the logs.
- If the issue is not easily reproducible, leave DEBUG logs on for 60 mins.
- Once you gather the logs, the LOG LEVEL back to normal, and restart Tomcat again.
Troubleshooting Manager Logs
In 4.2.4, if you are unable to download manager logs from the UI, please set the following property in the properties file, then restart tomcat:
download.activity.log.period.days=2
In general, see the attached pdf (JetPatch Log Files) in how to use the manager logs.
Additional Configuration
Available only in 4.2.4 UR3 and above (defaults below)
//toggles whether monitoring files should be added to logs
download.monitoring.log.enabled=true
//toggles whether activities should be added to logs
download.activity.log.enabled=true
//indicate number of activities that should be added to single file
download.activity.log.chunk.size=5000
//indicate period in days from current moment, all finished activities in that period should be added to log file)
download.activity.log.period.days=7
Comments
0 comments
Please sign in to leave a comment.