Skip to content

Commit

Permalink
update: Changes to EKS cluster logging instructions (#1059)
Browse files Browse the repository at this point in the history
Co-authored-by: Kathanjit Sengupta <[email protected]>
Co-authored-by: Niall Thomson <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent 59fffc4 commit 1a76627
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@ title: "Configuring control plane logs"
sidebar_position: 30
---

Enabling EKS control plane logs is done on a per-cluster basis through the EKS API. This will often be configured using Terraform or CloudFormation, but in this lab we'll use the AWS CLI to enable the functionality:
You can enable each of the cluster log types individually, and in this lab we're enabling everything.

Let's take a look this configuration in the EKS console:

<ConsoleButton url="https://console.aws.amazon.com/eks/home#/clusters/eks-workshop?selectedTab=cluster-logging-tab" service="eks" label="Open EKS console"/>

The **Logging** tab shows the current configuration for control plane logs for the cluster:

![EKS Console Observability Tab](./assets/logging-cluster-observability-tab.webp)
![EKS Console Control Plane Tab](./assets/logging-cluster-control-plane-logging-tab.webp)

You can alter the logging configuration by clicking the **Manage** button:

![Enable Logging](./assets/logging-cluster-enable-control-plane-logging.webp)

You can also enable EKS control plane logs on a per-cluster basis through the EKS API. This will often be configured using Terraform or CloudFormation, but in this lab we can use the AWS CLI to enable the functionality:

```bash hook=cluster-logging
$ aws eks update-cluster-config \
Expand All @@ -28,17 +43,3 @@ $ aws eks update-cluster-config \
$ sleep 30
$ aws eks wait cluster-active --name $EKS_CLUSTER_NAME
```

As you can see we can enable each of the cluster log types individually, and in this lab we're enabling everything.

Let's take a look this configuration in the EKS console:

<ConsoleButton url="https://console.aws.amazon.com/eks/home#/clusters/eks-workshop?selectedTab=cluster-logging-tab" service="eks" label="Open EKS console"/>

The **Logging** tab shows the current configuration for control plane logs for the cluster:

![EKS Console Logging Tab](./assets/logging-cluster-logging-tab.webp)

You can alter the logging configuration by clicking the **Manage** button:

![Enable Logging](./assets/logging-cluster-enable-logging.webp)

0 comments on commit 1a76627

Please sign in to comment.