NetFlow statistics
Last updated Aug 24, 2026
NetFlow exports from Cloudflare One Appliance to Network Flow
You can configure your Cloudflare One Appliance (formerly Magic WAN Connector) to export Netflow statistics for local breakout traffic to Network Flow (formerly Magic Network Monitoring). This provides insights into traffic that leaves your site directly, bypassing the Cloudflare network.
The Cloudflare One Appliance uses NetFlow v9 to export flow data for breakout traffic only. You can enable and configure this export by setting the Netflow configuration for the associated site via the Cloudflare API.
Enable NetFlow exports
Note
To export NetFlow statistics, you will need your account ID and API token, as well as the site_id associated with your Cloudflare One Appliance.
- Send a
PUTrequest to the Netflow configuration endpoint for your site. - In the JSON body request, you must include the
collector_ipparameter. To export traffic statistics to Network Flow, use the IP address162.159.65.1. This is the only field required to enable the feature.
Minimal configuration example:
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/netflow_config" \
--request PUT \
--json '{
"collector_ip": "162.159.65.1"
}'
-
You can customize the configuration by adding optional fields to the JSON payload. These fields include:
-
collector_port: The UDP port for the collector. The default is2055. sampling_rate: The rate at which packets are sampled.active_timeout: The timeout for active flows in seconds.inactive_timeout: The timeout for inactive flows in seconds.
Full configuration example:
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/netflow_config" \
--request PUT \
--json '{
"collector_ip": "162.159.65.1",
"collector_port": 2055,
"sampling_rate": 100,
"active_timeout": 60,
"inactive_timeout": 30
}'
Your Cloudflare One Appliance will now begin exporting Netflow data for its breakout traffic, which will be ingested and displayed within your Network Flow dashboard. You can retrieve the current settings by sending a GET request, or disable the export by sending a DELETE request to the same endpoint.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-wan/analytics/netflow-analytics/#page","headline":"NetFlow statistics","description":"View NetFlow statistics for WAN traffic.","url":"https://developers.cloudflare.com/cloudflare-wan/analytics/netflow-analytics/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-wan/analytics/netflow-analytics/og.png?v=72a4bbe52f45e131","dateModified":"2026-08-24","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/"}}
description: Analyze network traffic patterns with Network Analytics. title: Network analytics image: https://developers.cloudflare.com/cloudflare-wan/analytics/network-analytics/og.png?v=f0a95ca9bf475dc4
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-wan/llms.txt
Use this file to discover all available pages before exploring further.
Docs