This topic provides sample commands that you can use to view and aggregate logs from your APIIDA API Gateway Manager installation. The logs may contain container-specific error messages, event messages, and warnings.
Viewing Logs
The container can log to any external logging system supported by Docker. Use the docker-compose logs
command to view logs.
The following command prints the logs for all services that are defined in the docker-compose.yml
file:
$ docker-compose logs --follow
The following command prints logs for the service named "aagm" defined in the docker-compose.yml
file:
$ docker-compose --file docker-compose.yml logs --follow aagm
Aggregating Logs
Container logs can be aggregated and sent to any external logging system supported by Docker. The following example aggregates and sends the Container logs to the syslog server "syslog.domain.com" on port 514.
services: aagm: image: apiida/aagm:latest logging: driver: syslog options: syslog-address: "tcp://syslog.domain.com:514"