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:

  1. From the navigation menu, click Workloads > Deployments.
  2. Select the deployment that you want to view.
  3. 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:

  1. From your workloads page, navigate to the resource details page.
  2. In the Pods table, click the actions menu associated with your pod and select View logs. You can also navigate to the pod details page and click the actions menu to View logs.
  3. 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.
  4. 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 using AND and other operators. Additional documentation is available on the Elastic Company Opens in a new tab and Apache Lucene Opens in a new tab 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:

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:

  1. From the navigation menu, click Workloads > Deployments.
  2. Select the deployment that you want to view.
  3. 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:

  1. From the navigation menu, click Workloads > Deployments.
  2. Select the deployment that you want to view.
  3. Select the pod that you want to view.
  4. Click the Events tab. A search box is also available that allows for quick keyword-based queries.