Get started (67)
Last updated May 7, 2026 Network Flow (formerly Magic Network Monitoring) includes an onboarding workflow that guides you step-by-step through the product configuration process. If you are unable to complete the configuration in one session, you can exit the workflow and resume it at any time.
After completing the setup, you can view traffic analytics, create rules to monitor traffic thresholds, and receive alerts when those thresholds are exceeded. To begin, complete the list of tasks below.
If you are an Enterprise customer, Cloudflare can significantly accelerate the onboarding timeline during active-attack scenarios.
Enterprise customers that would like to use Network Flow and Magic Transit On Demand together can begin by configuring Magic Transit.
NetFlow and sFlow guide
1. Verify NetFlow or sFlow capabilities
Verify your routers are capable of exporting NetFlow or sFlow to an IP address on Cloudflare's network. Network Flow supports NetFlow v5, NetFlow v9, IPFIX, and sFlow.
Refer to Supported routers to view a list of supported routers. The list is not exhaustive.
2. Register your router with Cloudflare
Register your router so that Cloudflare knows which IP address to expect flow data from and can associate it with your account.
- Go to the Network flow page.
- In Network flow, select Configure Network flow.
- Select the Configure routers tab.
- (Optional) Under IP Address, enter your router's public IP address.
- Under Default router sampling rate, enter a value for the sampling rate. The value should match the sampling rate of your NetFlow or sFlow configuration.
- Select Next.
3. Configure your router
Next, configure your router to send NetFlow or sFlow data to Cloudflare. For this step, you will also need to have your router's configuration menu open to input the values shown in the Cloudflare dashboard.
Refer to the NetFlow and IPFIX configuration guide or the sFlow configuration guide for more information.
- From Configure routers in the dashboard, select either NetFlow Configuration or sFlow configuration.
- Follow the configuration steps for the selected configuration type.
- Enter the values shown in your router's configuration.
- Select Next.
4. Check your router configuration
After setting up your router, confirm the configuration was successfully set up.
From the Check routers page on the dashboard, you can view the status of your routers. Router data typically takes five to ten minutes to appear in the Cloudflare dashboard.
Refer to Router status description to confirm whether data is successfully being sent.
When you are done with router configuration, select Finish onboarding.
Note
This will only be visible during the onboarding process. When you are finished onboarding, this page will no longer be visible.
5. Create rules
Create rules to analyze data for a specific set of destinations or to implement thresholds. Refer to Rules for more information.
VPC flow log guide Beta
1. Verify cloud flow log capabilities
Verify that your Amazon Web Services (AWS) account is capable of exporting AWS Virtual Private Cloud (VPC) flow logs through AWS Firehose. Currently, Network Flow only supports VPC flow log ingestion for AWS.
2. Set up AWS Firehose to export VPC flow logs to Cloudflare
Note
AWS VPC flow logs can only be configured through the Cloudflare API for Network Flow. There are no inputs in the dashboard for configuring AWS VPC flow logs.
- Create an authorization token using Cloudflare's API for Network Flow. This authorization token allows Cloudflare to identify and verify the account sending VPC flow logs to our endpoint.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic Network Monitoring Admin</code></details>
Generate authentication token for VPC flow logs export.bash
bash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/mnm/vpc-flows/token" \
--request POST \
--header "X-Auth-Email: $CLOUDFLARE_EMAIL" \
--header "X-Auth-Key: $CLOUDFLARE_API_KEY"
- In your AWS Firehose stream configuration, set the
HTTP Headers - X-Amz-Firehose-Access-Keyto the authorization token generated in the previous step. - Send your AWS Firehose VPC flow log stream towards
https://aws-flow-logs.cloudflare.com/. - Select all of the AWS VPC flow log data fields that you want to send to Cloudflare. You should select the highest number AWS VPC flow log version that supports all the fields you want to export to Cloudflare (refer to AWS flow log documentation ↗︎ for more information). For example, if you need a version 8 field like
reject-reason, you must export all fields from versions 1 through 8. Cloudflare supports all seven templates for AWS VPC Flow logs.
3. Verify your cloud traffic via analytics
After setting up AWS Firehose to send VPC flow logs to Network Flow, you can confirm that Cloudflare is receiving the logs as expected by searching for your cloud traffic data in the analytics page of the Network Flow dashboard.
- Go to the Network flow page.
- The default view will be the analytics dashboard for Network Flow.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/network-flow/get-started/#page","headline":"Get started","description":"Set up Network Flow to monitor network traffic patterns.","url":"https://developers.cloudflare.com/network-flow/get-started/","inLanguage":"en","image":"https://developers.cloudflare.com/network-flow/get-started/og.png?v=7159d79bfff43d7f","dateModified":"2026-05-07","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["NetFlow","AWS"]}
description: A step-by-step configuration guide for exporting NetFlow or IPFIX data to Cloudflare's network. title: Netflow/IPFIX configuration image: https://developers.cloudflare.com/network-flow/routers/netflow-ipfix-config/og.png?v=0e149712805641be
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/network-flow/llms.txt
Use this file to discover all available pages before exploring further.
Docs