Page tree
Skip to end of metadata
Go to start of metadata

API Management uses Docker. If you have technical problems with API Management and need to do some deeper research, you can have a look at the Docker logs.

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

    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

    docker-compose logs

    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).

    ContainerLog DirectoryRemark
    ui (Tomcat)/usr/local/tomcat/logs
    Log messages are handled by the configured Docker logging driver. By default you can access logs with  docker logs , see also the Elasticsearch documentation.

  • No labels