In the acm-api
pod, Certificate Hub has a main container writing logs with an SLF4J logger.
Viewing Certificate Hub logs in Kubernetes
List the pod names:
kubectl get pods -n <namespace>
Where <namespace>
is the name of the namespace. For example:
- qalatest
- dev
View logs on Discovery, Reports, Administrators, Certificates, Sources, or Destinations:
kubectl logs <pod_name> -n <namespace>
Where <pod_name>
is the pod name with the following prefix:
acm-api-
Adjusting the acm-api log level
Edit the ConfigMap. You can use the tool provided by your platform or run the following command.
kubectl -n <namespace> edit cm acm-api-config
Append the log level under jpa.hibernate.ddl-auto: none\n
.
"\ jpa.hibernate.ddl-auto: none\nlogging:\n level:\n root: <log_level>”
Where <log_level>
is one of the following:
- ERROR
- WARN
- INFO
- DEBUG
- TRACE
Run the following command.
kubectl -n <namespace> rollout restart deployment acm-api