Overview on the Docker Setup of API Management
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
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).
The docker-compose logs are rotating with 10 MB per file and a maximum of 10 files per component. Given this, the maximum size of the logs should not exceed 500 MB.
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
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.