> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/flow-logs/overview.md).

# Overview

Use the Flow logs feature to capture data that is related to IPv4 and IPv6 network traffic flows. Flow logs can be enabled for each network interface of a [<mark style="color:blue;">Virtual Machine (VM)</mark>](https://docs.ionos.com/support/general-information/glossary-of-terms#virtual-machine-vm) instance, as well as the public interfaces of the [<mark style="color:blue;">Managed Network Load Balancer (NLB)</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/outline.md) and [<mark style="color:blue;">Managed Network Address Translation (NAT) Gateway</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/nat-gateway/overview.md).

Flow logs can help you with several tasks such as:

* Debugging connectivity and security issues
* Monitoring network throughput and performance
* Logging data to ensure that firewall rules are working as expected

Flow logs are stored in a customer IONOS S3 Object Storage bucket, which you configure when you create a flow log collector.

## Network traffic flows

A network traffic flow is a sequence of packets sent from a specific source to a specific unicast, anycast, or multicast destination. A flow could be made up of all packets in a specific transport connection or a media stream. However, a flow is not always mapped to a transport connection one-to-one.

A flow consists of the following network information:

* Source [<mark style="color:blue;">IP address</mark>](https://docs.ionos.com/support/general-information/glossary-of-terms#ip-address)
* Destination IP address
* Source port
* Destination port
* Internet protocol
* Number of packets
* Bytes
* Capture start time
* Capture end time

## Core concepts

* Flow log data for a monitored network interface is stored as flow log records, which are log events containing fields that describe the traffic flow. For more information, see [<mark style="color:blue;">Flow Log Record</mark>](https://docs.ionos.com/cloud/compute-engine/networks/how-tos/flow-logs/record-example).
* Flow log records are written to flow logs, which are then stored in a user-defined [<mark style="color:blue;">IONOS S3 Object Storage bucket</mark> ](https://docs.ionos.com/cloud/managed-services/s3-object-storage)from where they can be accessed.
* You can export, process, analyze, and visualize flow logs using tools, such as Security Information and Event Management (SIEM) systems, Intrusion Detection Systems (IDS), [<mark style="color:blue;">Cyberduck</mark>](https://cyberduck.io), [<mark style="color:blue;">Logstash</mark>](https://www.elastic.co/logstash/), etc.
* Traffic flows in your network are captured based on the defined rules.
* Flow logs are collected at a **10-minute** rotation interval and have no impact on customer resources or network performance. Statistics about a traffic flow are collected and aggregated during this time period to create a flow log record.

{% hint style="info" %}
**Note:** No flow log file will be created if no flows for a particular bucket are received during the log rotation interval. This prevents empty objects from being uploaded to the IONOS S3 Object Storage.
{% endhint %}

* The flow log file's name is prefixed with an optional object prefix, followed by a Unix timestamp and the file extension `.log.gz`. Example: `flowlogs/webserver01-1629810635.log.gz`.
* Flow logs are retained in the IONOS S3 Object Storage bucket until they are manually deleted. Alternatively, you can configure objects to be deleted automatically after a predefined time period using a Lifecycle Policy for an object in the IONOS S3 Object Storage. For more information, see [<mark style="color:blue;">Delete objects</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/storage-and-backup/s3-object-storage/how-tos/manage-objects-folders.md#delete-objects).
* The IONOS S3 Object Storage owner of the object is an IONOS internal technical user named [<mark style="color:blue;">flowlogs@cloud.ionos.com</mark>](mailto:wlogs@cloud.ionos.com) with **Canonical ID 31721881|65b95d54-8b1b-459c-9d46-364296d9beaf**.

{% hint style="danger" %}
**Warning:** It is advisable to never delete the IONOS Cloud internal technical user from your bucket as this disables the flow log service. The bucket owner also receives full permissions to the flow log objects per default.
{% endhint %}

## Limitations

This section lists the limitations of Flow logs:

* You cannot change the configuration of a flow log or the flow log record format after it has been created. In the flow log record, you cannot add or remove fields. Instead, delete the flow log and create a new one with the necessary settings.
* There is a limit of one flow log created per NIC, Managed NAT Gateway, and Managed Network Load Balancer.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/flow-logs/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
