Overview
VPC Flow Logs record the network connections in and out of your VPC: source and destination address, ports, protocol, byte and packet counts, and whether the traffic was accepted or rejected. Atatus reads them directly from the S3 bucket your flow log already delivers to, using the same agent and the same configuration file as AWS CloudTrail. Onlysource: differs.
Rejected flows are the ones worth watching: a port scan, a misconfigured
security group, or blocked exfiltration all look like a burst of REJECT
records.
Collection starts from the moment you set it up. Objects already in the
bucket are not ingested.
Requirements
Step 1: Create the flow log
Skip this if you already deliver flow logs to S3.Step 2: Create the IAM policy
Step 3: Configure the agent
Add a stanza to/etc/atatus-infra-agent/conf.d/s3.d/s3.yml. If you already
collect CloudTrail, add this alongside the existing entry, since one file holds
every AWS log family.
Reading a bucket in another AWS account
Addrole_arn and the agent assumes that role, reading with its temporary
credentials instead of anything stored on disk:
source: and
the prefix differ.
Step 4: Restart and verify
dataSource: aws_vpc_flow_logs.
What gets collected
Each flow record becomes one security event:
Severity is
low for accepted traffic and medium for rejected traffic, before
the detection rules run.
Configuration reference
queue_url and bucket_arn are mutually exclusive, so set one, not both.
How it behaves
- Only new logs are collected. Collection begins when the agent first starts with this configuration.
- Restarts are safe. The agent records which objects it has already sent, so restarting the agent or rebooting the machine never re-sends them.
- Volume. Flow logs are far higher-volume than CloudTrail. Start with one VPC before enabling it fleet-wide.
Troubleshooting
Errors appear in the agent log at/var/log/atatus-infra-agent/.