On-premises CA Gateway sends all logging to the standard output captured by the Docker or Podman infrastructure. 

Getting the container identifier

Run the following command to get the <CONTAINER_ID​> identifier of the container recording the logs

[docker|podman] ps

For example

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f5ed108d9981 cagw/api:1.6.0 "/entrypoint.sh" 25 hours ago Up 25 hours 0.0.0.0:443-8080/tcp unruffled_curran

Viewing logs 

Run the following container to view the logs recorded by the container with the <CONTAINER_ID​​>  identifier.

[docker|podman] logs <CONTAINER_ID​​>

Following logs 

Run the following container to follow the logs recorded by the container with the <CONTAINER_ID​​>  identifier.

[docker|podman] logs <CONTAINER_ID​> -f

Dumping logs 

Run the following container to dump into the <FILE> file the logs recorded by the container with the <CONTAINER_ID​​>  identifier.

[docker|podman] logs <CONTAINER_ID​> > <FILE>

Checking error codes

For a description of each error code recorded in the CA Gateway logs, see the CA Gateway API documentation at:

https://<HOST>:<CAGW_HOST_PORT>/<server.servlet.context-path>/docs

Where <HOST> and <CAGW_HOST_PORT> are the hostname and port of the CA Gateway service. CA Gateway logs can also include the following warning message.

Version <= 1.4 profile configuration detected for CA <ca>. This configuration syntax is deprecated. Please update.

CA Gateway records this warning message when the YAML configuration includes a deprecated profile syntax under:

cagw.authorities.managed-cas.<CA>

 To avoid this message, configure the CA profiles as described in the configuration guide.