Accessing Logs using Kubernetes
Accessing the Log of a POD
In Kubernetes, applications usually log to STDOUT, which is captured and managed by Kubernetes.
To access the log, use the kubectl -n NAMESPACE logs PODNAME command. Useful options include --tail (specify the number of lines), --since and --follow.
Instead of specifying the PODNAME, you can also use a selector:
-
-l app.kubernetes.io/name=gentics-cmsfor Gentics CMS -
-l app.kubernetes.io/name=gentics-meshfor Gentics Mesh -
-l app.kubernetes.io/name=gentics-portal-phpfor Gentics Portal | php -
-l app.kubernetes.io/name=gentics-portal-javafor Gentics Portal | java -
-l app.kubernetes.io/name=gentics-activitifor Gentics Task Management App -
-l app.kubernetes.io/name=keycloakfor Keycloak -
-l app=mariadbfor MariaDB -
-l chart=elasticsearchfor Elasticsearch
Gentics CMS Specific Logfiles
Gentics CMS uses different logfiles for specific tasks, as is detailed in the Gentics CMS guide.