forked from docs/doc-exports
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
8.2 KiB
8.2 KiB
Collecting Audit Logs
CCE allows you to collect the logs of master nodes. On the Kubernetes Audit Logs tab of Logging, you can determine whether to report audit logs to LTS.
Constraints
- The cluster version must be v1.21.7-r0 or later, v1.23.5-r0 or later, or 1.25.
- There is required LTS resource quota.
Audit Logs
Log Type |
Component |
Log Stream |
Description |
|---|---|---|---|
Kubernetes audit logs |
audit |
audit-{{clusterID}} |
An audit log is a chronological record of user operations on Kubernetes APIs and control plane activities for security. |
Enabling Kubernetes Audit Logging
Enabling audit logging during cluster creation
- Log in to the CCE console.
- Click Create Cluster. Then, configure the parameters and click Next: Select Add-on.
- On the displayed page, select Cloud Native Log Collection and click Next: Configure Add-on.
- On the displayed page, select Kubernetes Audit Logs for Cloud Native Log Collection.
- Click Next: Confirm Settings.
Enabling audit logging for an existing cluster
Viewing Kubernetes Audit Logs
Viewing Kubernetes audit logs on the CCE console
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Logging.
- Click the Kubernetes Audit Logs tab to view audit logs in the cluster. For details about related operations, see Log Tank Service User Guide.
Viewing Kubernetes audit logs on the LTS console
- Log in to the LTS console and choose Log Management.
- Search for the log group by cluster ID and click the log group name to view the log streams. For details, see Log Tank Service User Guide.
Disabling Kubernetes Audit Logging
Parent topic: Logging



