Skip to main content

AWS VPC Flow - Cloud SIEM

This section has instructions for collecting AWS VPC Flow log messages from AWS S3 and sending them to Sumo Logic to be ingested by CSE.

Sumo Logic CSE supports the default AWS VPC Flow log format which includes all version 2 fields. See AWS VPC flow log records documentation for more details.

Step 1: Enable AWS VPC Flow Logs

In this step, you configure AWS VPC Flow logging in AWS as described in AWS Help.

  1. You can use an existing S3 bucket, or create a new one, as described in Create an S3 bucket in AWS help.
  2. Create flow logs for your VPCs, subnets, or network interfaces. For instructions, see Creating a Flow Log that Publishes to Amazon S3 in AWS help.
  3. Confirm that logs are being delivered to the S3 bucket. Log files are saved to the bucket using following folder structure: bucket_ARN/optional_folder/AWSLogs/aws_account_id/vpcflowlogs/region/year/month/day/log_file_name.log.gz
  4. Ensure permission is granted for an AWS Source and that logging is enabled.

Step 2: Configure Collection

In this step, you configure an HTTP Source to collect AWS VPC Flow log messages. You can configure the source on an existing Hosted Collector or create a new collector. If you’re going to use an existing collector, jump to Configure an AWS S3 Source below. Otherwise, create a new collector as described in Configure a hosted collector below, and then create the HTTP Source on the collector.

Configure a hosted collector

  1. In the Sumo Logic platform, select Manage Data > Collection > Collection.
  2. Click Add Collector.
  3. Click Hosted Collector.
  4. The Add Hosted Collector popup appears.
    add-hosted-collector.png
  5. Name. Provide a Name for the Collector.
  6. Description. (Optional)
  7. Category. Enter a string to tag the output collected from the source. The string that you supply will be saved in a metadata field called _sourceCategory
  8. Fields
    1. If you are planning that all the sources you add to this collector will forward log messages to CSE, click the +Add Field link, and add a field whose name is _siemForward and value is true. This will cause the collector to forward all of the logs collected by all of the sources on the collector to CSE.
    2. If all sources in this collector will be AWS VPC Flow sources, add an additional field with key _parser and value /Parsers/System/AWS/AWS VPC Flow.
note

It’s also possible to configure individual sources to forward to CSE, as described in the following section.

Configure an AWS S3 Source

  1. In Sumo Logic, select Manage Data > Collection > Collection
  2. Navigate to the Hosted Collector where you want to create the source.
  3. On the Collectors page, click Add Source next to a Hosted Collector.
  4. Select Amazon S3. 
  5. The page refreshes.
    s3-source.png
  6. Name. Enter a name for the source. 
  7. Description. (Optional) 
  8. S3 Region. Choose the AWS Region the S3 bucket resides in.
  9. Bucket Name. The name of your organizations S3 bucket as it appears in AWS
  10. Path Expression. The path expression of the log file(s) in S3, can contain wildcards to include multiple log files.
  11. Source Category. Enter a string to tag the output collected from the source. The string that you supply will be saved in a metadata field called _sourceCategory.
  12. Fields.
    1. If you are not forwarding all sources in the hosted collector to CSE, click the +Add Field link, and add a field whose name is _siemForward and value is true. This will ensure all logs for this source are forwarded to CSE.
    2. Add another field named _parser with value /Parsers/System/AWS/AWS VPC Flow.
  13. AWS Access. For AWS Access you have two Access Method options. Select Role-based access or Key access based on the AWS authentication you are providing. Role-based access is preferred. Note that Sumo Logic access to AWS (instructions are provided above in Step 1)  is a prerequisite for role-based access.
    • Role-based access. Enter the Role ARN that was provided by AWS after creating the role. 
      role-arn.png
    • Key access. Enter the Access Key ID and Secret Access Key. See AWS Access Key ID and AWS Secret Access Key for details.
  14. In the Advanced Options for Logs section, uncheck the Detect messages spanning multiple lines option.
  15. In the Processing Rules for Logs section, add an Exclude messages that match processing rule to ignore the following file header lines:
    version account-id interface-id srcaddr dstaddr srcport dstport protocol packets bytes start end action log-status
  16. Click Save.

Step 3: Verify ingestion

In this step, you verify that your logs are successfully making it into CSE. 

  1. Click the gear icon, and select Log Mappings under Incoming Data.
    log-mappings-link.png
  2. On the Log Mappings page search for "AWS VPC Flow" and check under Record Volume
  3. For a more granular look at the incoming records, you can also search the Sumo Logic platform for AWS VPC Flow security records.
Legal
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.