VPC
Monitor VPC flow logs using the Log Audit feature in Cloud Monitor.
Integration policy
-
Log on to the Cloud Monitor 2.0 console. Click your target Workspace. In the All Features, find and click Log Audit. Then, in the Resource Center under VPC, click Metric Data. If data has been ingested but is not displayed, adjust the time range in the upper-right corner of the page.
-
On the Alibaba Cloud VPC Log page, to the right of the Policy name input box, click New to accept the default settings. Then, click OK and wait for the integration to complete.
-
After the integration succeeds, you can view the policy in Integration Center > Integration Management. An example policy ID is
cloud-acs-ecs-audit-1739174112732. -
Confirm the settings on the integration page and click OK.
-
The policy is now visible in Integration Center > Integration Management.
-
Automatically enables the VPC flow log service if not already active.
-
Creates a flow log instance. To view it, go to the VPC console, switch to the workspace region, and navigate to the flow log section to find the
flowloginstance. -
Creates an SLS project named
aliyun-product-data-{{Account ID}}-{{VPC region}}and writes logs tovpc_logwithin it. It also creates two scheduled SQL tasks described in the following table. Do not delete these tasks.SQL task name
Description
Output
{{integration policy ID}}-vpc-country-entity
Extracts country entities from VPC flow logs for audit compliance.
A dedicated SLS Logstore for the workspace.
Project:
cms-{workspace name}-{random ID}Logstore:
{workspace name}__entity{{integration policy ID}}-vpc-country-topo
Extracts the associations between country entities and VPCs from VPC flow logs for audit compliance.
A dedicated SLS Logstore for the workspace.
Project:
cms-{workspace name}-{random ID}Logstore:
{workspace name}__topo
-
The total cost of flow logs is the sum of the flow log generation fee and the Log Service fee. For more information, see Flow log billing/Flow log billing.
Uninstall policy
Go to Integration Center > Integration Management, and click the Name/ID of the target policy. In the Integration configuration list, find the target configuration and click Disassociate in the Actions column. Wait for the uninstallation to complete.
Uninstallation notes:
-
Uninstallation does not delete existing SLS Logstore resources.
-
The scheduled SQL tasks are deleted.
-
The system deletes the flow log instance and stops writing flow logs.
-
Uninstalling the policy disables some log audit features. Proceed with caution.
Usage
The Log Audit > Resource Center > VPC page lists all your VPCs. Click a VPC name to view its Instance details, Related Topology, and more.