Viewing log files
About this task
Use one of the following methods to view the OneDB Database server logs:
Procedure
-
Use kubectl to view the pod logs
kubectl logs onedb-server-0
-
View the log files from inside the pod. The example below shows a tail of the
online.log. With this method you can view any log file associated with the OneDB Database
Server.
Exec into the pod cd $ONEDB_DATA_DIR/logs tail –f onedb*.logs
-
When a pod starts up it will sometimes use an init container to perform setup work
prior to the main pod starting.
kubectl logs onedb-server-0 –c onedb-init