Events and logs (cluster management console)
Access deployment events and logs by using the cluster management console.
You can use the following events and logs, accessible from the cluster management console, as tools when you troubleshoot issues with a deployment or operation.
Deployment events
The deployment events contain deployment and other event details for a deployment.
To review the deployment events for a particular deployment:
- From the navigation menu, click Workloads > Deployments.
- Select the deployment that you want to view.
- Click the Events tab. You can use the search function for quick keyword-based queries.
Deployment logs
Before you check the deployment log, verify that all the pods in a deployment are in Running state. Otherwise, you might need to review the logs to find out why pods are not up and running.
To review the deployment logs for a particular deployment:
- From your workloads page, navigate to the resource details page.
- In the
Podstable, click the actions menu associated with your pod and selectView logs. You can also navigate to the pod details page and click the actions menu toView logs. - If Kibana is enabled, you will be launched to Kibana. If Kibana is not enabled, you will see a pop-up containing the corresponding kubectl command. Use the kubectl command to view the logs for your pod.
- To search Kibana, navigate to the
Discoverytab. Type your queries in the text box near the top of the browser window. You can use the following fields on their own, or you can combine them with other fields usingANDand other operators. Additional documentation is available on the Elastic Companyand Apache Lucene
sites.
kubernetes.container_nameis the name of the container that generated the log.kubernetes.podis the name of the pod to which the container belongs.kubernetes.namespaceis the namespace in which the container was deployed.kubernetes.container_idis the UUID assigned to the container by Docker.
Query examples:
kubernetes.pod:mypodkubernetes.pod:mypod AND severity:NORMALkubernetes.namespace:default AND FileNotFoundError
ReplicaSet events
ReplicaSets are used to maintain the replicas or pods that are running in a cluster.
To review the ReplicaSet events for a particular deployment:
- From the navigation menu, click Workloads > Deployments.
- Select the deployment that you want to view.
- Review the ReplicaSet details.
Pod events
Pods are the base, deploy-able units that are created in your cluster. A single pod might contain one or more containers.
To review the pod events for a particular deployment:
- From the navigation menu, click Workloads > Deployments.
- Select the deployment that you want to view.
- Select the pod that you want to view.
- Click the Events tab. A search box is also available that allows for quick keyword-based queries.