ARTIFACTORY: How to enable sidecar containers for tailing Artifactory logs in Kubernetes
This article demonstrated how to enable Sidecar containers for tailing Artifactory logs
Step 1: Edit the values yaml to add the list of logs file names to the side car container
Example:
artifactory: loggers: - access-audit.log - access-request.log - access-security-audit.log - access-service.log - artifactory-access.log - artifactory-event.log - artifactory-import-export.log - artifactory-metrics.log - artifactory-request.log - artifactory-service.log - frontend-request.log - frontend-service.log - metadata-request.log - metadata-service.log - router-request.log - router-service.log - router-traefik.log
Note
It is also possible to add the tomcat catalina, localhost logs and it is required to add the below parameters.
artifactory: catalinaLoggers: - tomcat-catalina.log - tomcat-localhost.log
Step 2: Perform a helm upgrade and once the upgrade is completed, use the command “kubectl logs -f <pod-name> -n <namespace> -c <log-container-name>” to tail the live logs.