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
Pods
table, 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 installed, you will be launched to Kibana. If Kibana is not installed, 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
Discovery
tab located on the left side of your screen. 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 usingAND
and other operators. Additional documentation is available on the Elastic Company and Apache Lucene sites.kubernetes.container_name
is the name of the container that generated the log.kubernetes.pod
is the name of the pod to which the container belongs.kubernetes.namespace
is the namespace in which the container was deployed.kubernetes.container_id
is the UUID assigned to the container by Docker.
Examples of queries using the above variables:
kubernetes.pod:mypod
kubernetes.pod:mypod AND severity:NORMAL
kubernetes.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.