> For the complete documentation index, see [llms.txt](https://docs.onelens.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onelens.cloud/optimize-cost-savings-and-recommendations/deep-insights/vpc-flow-logs.md).

# AWS VPC Flow logs

VPC Flow Analysis is available for AWS only. It shows how traffic moves through your VPCs (which resources send data, over which route, and to which destination) and what that traffic costs. It also flags flows that could cost less.

Go to **Optimize → Deep Insights → VPC Flow Analysis**. The page has three tabs: **VPC Flow Analysis**, **Flow logs** and **Insights & Opportunities**.

### VPC Flow Analysis tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2Fx5390ENcL0A359cobGwd%2Fimage.png?alt=media&amp;token=75532d0b-f716-41b1-aa38-fb1d30c2b627" alt=""><figcaption></figcaption></figure>

Use the view dropdown next to it to pick a ready-made view of your traffic:

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FJ4o7GqN4qXzCBmuFRK8k%2Fimage.png?alt=media&amp;token=4ce68fc2-2263-4ae6-90a5-74150b06153d" alt=""><figcaption></figcaption></figure>

* Default View
* EC2 Outbound Traffic
* EC2 Inbound Traffic
* NAT Gateway Traffic Analysis
* Application Load Balancer Flows
* Network Load Balancer Flows
* Intra-VPC Traffic
* Cross-Availability Zone Data Transfer
* Workloads → Internet

For example, **NAT Gateway Traffic Analysis** shows which apps in private networks reach the internet through a NAT gateway, so you can find heavy internet use and what it costs.

Two cards show **Total Networking Cost** and **Total Data Transferred** for the view and date range.

The flow chart follows the **Flow Sequence** shown above it: Resource → Transfer Type → Network Route → Destination Service → Destination Address. The width of each band shows how much data took that path. Use **Hide Chart** to collapse it, and **Export** to download the data.

### Insights & Opportunities tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FdHbuIsJ1bw7ybEfE8Qur%2Fimage.png?alt=media&amp;token=a9b28486-8d3d-4368-9bab-d257ad314e07" alt=""><figcaption></figcaption></figure>

Three cards show **Total Networking Cost**, **Total Optimization Potential** and **Total Optimization Opportunities**, with the share of networking cost the savings represent.

Each row is one insight, with its ID (such as #NET\_825266), the insight type, the resource, the AWS service and the estimated **Monthly Savings**. Search by insight ID, **Export** the list, or click the eye icon to open an insight.

#### Insight details

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FXyA8qd6rNo8ciCUe1zKV%2Fimage.png?alt=media&amp;token=b6022766-0021-4115-827b-6f69a416f78c" alt=""><figcaption></figcaption></figure>

| Section            | What it shows                                                                                            |
| ------------------ | -------------------------------------------------------------------------------------------------------- |
| Summary            | What OneLens found, the service, the resource, the source IP and the analysis window                     |
| Transfer Breakdown | Transfer type, destination, destination IP, bytes transferred and networking cost in the analysis window |
| Recommendation     | What to change, and the target resource                                                                  |
| Insight Details    | The insight type and potential monthly savings                                                           |
| Resource Details   | Account, region, networking cost in the analysis window, resource information and tags                   |

**Example.** The insight **S3/DynamoDB via NAT Gateway** finds an EC2 instance that reaches S3 through a NAT gateway, which adds NAT processing and egress charges. The recommendation is to create a free S3 Gateway VPC Endpoint and update the subnet route tables, so S3 traffic no longer goes through the NAT gateway.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.onelens.cloud/optimize-cost-savings-and-recommendations/deep-insights/vpc-flow-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
