Viewing log files#
To view the logs in either a Docker™ or Kubernetes™ environment, use commands associated with the environment. In either environment you need to know the names of the HCL™ Accelerate containers.
Parent topic: Troubleshooting
Viewing logs in a Kubernetes environment#
To view the logs in a Kubernetes environment, you need to know the pod name that the HCL Accelerate containers are located in. A pod is a collection of one or more containers that are deployed together, and are started, stopped, and replicated as a group.
The default log level is error. The level of logging can be changed on the log.level configuration property. Other logging levels are: all, debug, info, warn, error, and fatal. Logging can also be turned off on the configuration property.
From a command line window, run the following command to obtain the pod names containing the HCL Accelerate containers.
kubectl get pods
Run the following command to view the logs.
kubectl logs pod_name
Viewing logs in a Docker Compose environment#
To view the logs in a Docker container, you need to know the container ID for the HCL Accelerate containers.
From a command line window, run the following command to list containers.
docker ps -a
The command output displays the containers and its ID.
To view the logs, use the docker logs command.
Run a separate command for each container.
docker logs velocity_userinterface_container_id
docker logs velocity_consumercontainer_id