API Management uses containers. If you have technical problems with API Management and need to do some deeper research, you can have a look at the container logs.
Overview on the Docker Setup of API Management
Deprecated since PAS 21.1
An installation of API Management consists of five Docker containers. For a more detailed description of the containers, refer to the API Management Installation Guide.
Content of the Logs
Each Docker container of an API Management installation writes its own logs. To view these dedicated logs, you need to go inside each container with
docker exec -it <container name> sh
The docker-compose logs contain information on starting API Management, operating services, and errors, like e.g.
- invalid and expired token
- unauthorized login attempts
- Elasticsearch availability
- stacktraces of exceptions
docker-compose collects the logs of all containers that are written to stdout and stderr. To view these logs, use
To dig deeper into problems with these components, you need to have a look at the application specific logs (see below).
All other logs are container specific and managed by the application running in the container. For more information on the Docker logs, refer to the Docker documentation (docker-compose logs and docker logs).
Container | Log Directory | Remark |
---|
gateway | /usr/src/apiman/apiman-distro-vertx/logs |
|
ui (Tomcat) | /usr/local/tomcat/logs |
|
elasticsearch |
| Log messages are handled by the configured Docker logging driver. By default you can access logs with docker logs , see also the Elasticsearch documentation. |
keycloak | /opt/jboss/keycloak/standalone/log |
|
mysql | /var/log/mysql |
|