Configure data collection using VPC Flow Logs
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Service Mapping
Enable Service Mapping to perform discovery based on data collected using Virtual Private Cloud (VPC) logs. This method is relevant for organizations using Amazon Web Services (AWS).
Before you begin
Verify that credentials for the AWS account are configured in the Credentials module of the platform by navigating to Cloud credentials.
. For more information about AWS credentials, seeRole required: admin or sm_admin
About this task
In base systems, traffic-based discovery uses only TCP-related data collected with the help of the netstat, ss, and lsof commands. Discovery based on Netflow and VPC logs requires additional configuration. You can enrich your traffic-based discovery by configuring Service Mapping to use VPC Flow Logs. For more information about the Service Mapping discovery flow based on VPC Flow logs, see Data collection and discovery using VPC Flow Logs.
Amazon VPC hosts Amazon Elastic Compute Cloud (EC2) instances that provide Amazon Web Services. VPC flow logs collect data on IP traffic going to and from network interfaces in the VPC.
Configure the ServiceNow connector to trigger MID Server to collect the data from the flow log and processes it. In deployments with multiple flow log groups, configure a dedicated connector that works with one MID Server for every flow log group. Multiple flow log groups my use the same AWS credentials.
Procedure
- Configure VPC Flow Logs on the Amazon EC2 console as described in the official AWS documentation.
-
Configure Service Mapping
to work with VPC Flow Logs:
-
Verify that Service Mapping collects data using VPC Flow Logs:
- On the AWS VPC flow logs form, select the newly configured connector and click Run now to start the data collection flow and populate the Flow Connection [sa_flow_connection] table.
- Navigate to .
- Click the Flow Connection [sa_flow_connection] table.
- Under Related Links, click Show List.
- Verify that the table contains data.