Configure global cflowd (NetFlow) settings for the SD-WAN network hierarchy. This controls flow export parameters and collector destinations for network traffic visibility.
Example-1: Basic cflowd with a single server. This example configures cflowd with default timeouts and a single server in VPN 1 and protocol is set to IPv4.
sdwan:
network_hierarchy:
collectors:
cflowd:
servers:
- vpn_id: 1
address: 10.0.0.1
udp_port: 4739
settings:
flow_active_timeout: 600
flow_inactive_timeout: 60
protocol: ipv4
Example-2: Full cflowd configuration with BFD metrics. This example enables all collection options including TOS, remarked DSCP, and TLOC loopback. Two collectors are configured — the first with BFD metrics export enabled.
sdwan:
network_hierarchy:
collectors:
cflowd:
servers:
- vpn_id: 1
address: 10.0.0.1
udp_port: 4739
export_spread: true
bfd_metrics_export: true
export_interval: 300
- vpn_id: 2
address: 10.0.0.2
udp_port: 9995
settings:
flow_active_timeout: 300
flow_inactive_timeout: 30
flow_refresh_time: 300
flow_sampling_interval: 10
collect_tloc_loopback: true
protocol: both
collect_tos: true
collect_dscp_output: true
Note: Upto 4 cflowd collector servers can be configured