Enabling debug logging for the Kong Gateway plugin
About this task
Ping Identity Support might ask you to enable debug logging for the Kong Gateway integration kit. Changing these settings logs the full authorization request and response between the ping-auth
plugin in Kong Gateway and PingAuthorize.
This could log sensitive and personally identifiable information (PII). Enable debug logging only when troubleshooting and disable it afterward. |
Steps
-
Enable error logging in Kong Gateway.
-
To view debug messages, configure Kong error log verbosity.
For more information, see the Kong Gateway Logging Reference documentation.
Example:
For example, in a Docker environment, you can set the environment variable
KONG_LOG_LEVEL
todebug
to set the verbosity. -
To enable debug logging, edit settings for the
ping-auth
plugin and select the Config.Enable Debug Logging check box. -
View the Kong Gateway error log.
Example:
For example, when depoloying Docker, you can use the
docker-compose logs kong --follow
command. -
Look for messages containing
ping-auth
.Example:
A typical log message looks like:
[ping-auth] Sending sideband request to policy provider
.