# AWS VPC Transit Gateway Flow

Scanner supports AWS VPC Transit Gateway flow logs, which contain data about the IP traffic going to and from your transit gateways. In order for Scanner to see these logs, you can configure VPC to publish these logs to S3.

## Step 1: Create a VPC Transit Gateway flow log to publish log events to S3

You can follow the AWS documentation to configure VPC to write Transit Gateway flow logs to an S3 bucket. For the best results, we recommend selecting the **Parquet** log file format. See: [Create a Transit Gateway Flow Logs record that publishes to Amazon S3](https://docs.aws.amazon.com/vpc/latest/tgw/flowlog-s3-create.html).

## Step 2: Ingest via Scanner Collect

Follow the [Custom Logs - AWS S3](/scanner/using-scanner-complete-feature-reference/data-ingestion/sources/custom-logs-aws-s3.md) guide to ingest logs from S3 via Scanner Collect.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scanner.dev/scanner/using-scanner-complete-feature-reference/data-ingestion/sources/aws-vpc-transit-gateway-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
