How to enable debug logging for html5gw docker and podman version

How to enable debug logging for html5gw docker and podman version

165
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:58 PM


Symptom


How to enable debug for Docker/podman version of html5gw



Environment


12.6;13.2;14.0 Privileged Access Manager (PAM, self-hosted) PSM

HTML5 Gateway Docker/Podman



Cause


None



Resolution


1. Stop the container:

# docker kill <containername>

or

# docker stop <containername>

 

2. Remove the container and associated files:

# docker rm <containername>

 

3. Relaunch the container with the debug parameters added:

-e PSMGWGuacLogLevel=debug -e PSMGWAppLogLevel=debug

 

- Reproduce the issue and collect the logs:

1. Create a directory for the logs, for example:
2. mkdir /tmp/psmgw_logs
3. Copy the Tomcat log: docker cp psmgw.com:/opt/tomcat/logs/catalina.out /tmp/psmgw_logs/
4. Copy the HTML5 web application log:
docker cp psmgw.com:/var/opt/CARKpsmgw/logs/webapp /tmp/psmgw_logs/
5. Extract the guacd logs:
docker logs -t --since 20m psmgw.com > /tmp/psmgw_logs/guac.log
6. Upload the /tmp/psmgw_logs directory to the case after all the logs are present, as well as the get-logs archive.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000016EhCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail