What logs to collect for HTML5 Gateway Podman / RPM
Question
What are the logs required for HTML5 Gateway, and how to enable debug?
Environment
12.2;12.6;13.2;14.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted) PSM;Privileged Session Management (PSM)
Answer
For RPM Installation:
-- To Enable Debug --
To enable debug logging in the guacd service you will need to edit the logback.xml file. The location of this file depends on how Tomcat and Guacamole was installed, but by default this is under "/opt/tomcat/webapps/guac/WEB-INF/classes/logback.xml". In this file, make the following change:
Change:
<root level="info">
To:
<root level="debug">
Debug logs will appear in the default webapp log under "/var/opt/CARKpsmgw/logs/webapp/cyberark-psm-gateway-webapp.log".
-- Information to provide --
* OS Version:
Uname -a
* Configuration files from the Vault, use the PrivateArk Client to obtain these:
PVConfiguration.xml (PVWAConfig Safe)
Policies.xml (PVWAConfig Safe)
* Configuration files from the HTML5 Gateway:
/etc/opt/CARKpsmgw/webapp/psmgw.conf
Tomcat server.xml file (Depends on customer installation path)
* HTML5 Webapp logs - /var/opt/CARKpsmgw/logs/webapp:
cyberark-psm-gateway-webapp.log
cyberark-psm-gateway-tomcat.*.log
* HTML5 Guacd daemon service logs:
/var/log/messages
For Container Installation (Podman):
==
1. --kill and remove html5gw--
sudo ./html5_console.sh purge html5gwid/servicename
==
**SAMPLE CMD**
sudo ./html5_console.sh purge html5gwpdm.cybrlab.home
==
2. --deploy html5gw with debug--
SAMPLE COMMAND
==
sudo ./html5_console.sh run -ti -d -p 443:8443 -v /opt/cert:/opt/import:ro -e AcceptCyberArkEULA=yes -e GWCert=wilcard.pem -e GWKey=wilcard.key -e GWCAFile=dc01-cybrlab-home.pem -e PSMGWGuacLogLevel=debug -e PSMGWAppLogLevel=debug -e EndPointAddress=https://pvwa.cybrlab.home/passwordvault --hostname html5gwpdm.cybrlab.home --name html5gwpdm.cybrlab.home cahtml5gw:14_0_0_10
==
3. Reproduce the Issue
4. Extract the HTML5GW logs:
==
- find the html5gwid by using [podman ps] command.
- and the steps to obtain the html5gw logs again:
1. Create a directory for the logs, for example:
2. mkdir /tmp/psmgw_logs
3. Copy the following logs:
- podman cp html5gw-id:/opt/PSMGWDockerInstallation/html5gw.log /tmp/psmgw_logs/
- podman cp html5gw-id:/opt/tomcat/logs/catalina.out /tmp/psmgw_logs/
- podman cp html5gw-id:/var/opt/CARKpsmgw/logs/webapp /tmp/psmgw_logs/
- podman logs -t --since 20m html5gw-id > /tmp/psmgw_logs/guac.log
- podman cp html5gw-id:/etc/opt/CARKpsmgw/webapp/psmgw.conf /tmp/psmgw_logs/
4. Upload the /tmp/psmgw_logs directory to the case after all the logs are present, as well as the get-logs archive.
==