Control: 2.4 Ensure Log Service is enabled for Container Service for Kubernetes
Description
Log Service shall be connected with Kubernetes clusters of Alibaba Cloud Container Service to collect the audit log for central monitoring and analysis. You can simply enable Log Service when creating a cluster for log collection.
Remediation
Perform the following ensure the Log Service for Kubernetes clusters is enabled:
From Console
- Logon to ACK Console.
- Click Clustersin the left-side navigation pane and clickCreate Kubernetes Clusterin the upper-right corner.
- Scroll to the bottom of the page and select the Using Log Servicecheck box. The log plug-in will be installed in the newly created Kubernetes cluster.
- When you select the Using Log Service check box, project options are displayed. A project is the unit in Log Service to manage logs.
- After you complete the configuration, click Createin the upper-right corner.
- In the displayed dialog box, click OK.
Usage
Run the control in your terminal:
powerpipe control run alicloud_compliance.control.cis_v100_2_4Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run alicloud_compliance.control.cis_v100_2_4 --shareSQL
This control uses a named query:
select  'arn:acs:::' || account_id as resource,  'info' as status,  'Manual verification required.' as reason  , account_id as account_idfrom  alicloud_account;