Edge for Private Cloud v4.19.01
You can enable debug logging for several Edge components. When you enable debug logging,
the component writes debug messages to its system.log
file.
For example, if you enable debug logging for the Edge Router, the Router writes debug messages to:
/opt/apigee/var/log/edge-router/logs/system.log
Use the following API call to enable debug logging for a component:
curl -X POST "http://localhost:PORT/v1/logsessions?session=debug"
To disable debug logging:
curl -X DELETE "http://localhost:PORT/v1/logsessions/debug"
To view active debug logging sessions:
curl -X GET "http://localhost:PORT/v1/logsessions/debug"
Each Edge component that supports debug logging uses a different port number in the API call, as shown in the following table:
Component | Port | Log file |
---|---|---|
Management Server | 8080 | /opt/apigee/var/log/edge-management-server/logs/system.log |
Router | 8081 | /opt/apigee/var/log/edge-router/logs/system.log |
Message Processor | 8082 | /opt/apigee/var/log/edge-message-processor/logs/system.log |
Qpid Server | 8083 | /opt/apigee/var/log/edge-qpid-server/logs/system.log |
Postgres Server | 8084 | /opt/apigee/var/log/edge-postgres-server/logs/system.log |
Enable debug logging for Edge SSO
To enable debug logging for Edge SSO:
- Edit the
/opt/apigee/customer/application/sso.properties
file (if the file does not exist, create it):vi /opt/apigee/customer/application/sso.properties
- Set the following property and save the file:
conf_logback_log_level=DEBUG
- Restart the Edge SSO service:
/opt/apigee/apigee-service/bin/apigee-service apigee-sso restart