Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Flexible NetFlow

Direct answer

Flexible NetFlow records conversations passing through an interface: a record defines what identifies a flow and what is counted, a monitor holds the flow cache and is attached to the interface, and an exporter sends finished flows to a collector.

When to use this

Use it to see who talks to whom and how much — top talkers, unexpected traffic, capacity — and when the collector shows no data.

First 30 seconds

1. show flow interface <interface> — is the monitor attached in the right direction?

2. show flow monitor <name> cache — are flows being recorded?

3. Empty → traffic does not cross that interface in that direction.

4. Cache full of flows but collector empty → show flow exporter <name> statistics: sent? Collector address, port and source interface right?

5. Collector shows data, wrong fields → the record does not include them.

Operational verification

record defines key and non-key fields → monitor uses the record and an exporter → attached to the interface in the needed direction → flows appear in the cache → time out → exported from the source interface → collector receives template and records

Failure signatureNetFlow collector receives no flows from the router

The collector shows no data for this device, or only for some interfaces.

Possible stored cause: The flow monitor is not attached to the interface/direction, the exporter destination/port is wrong, or the source address is not reachable.
Evidence · next step

1. Verify record fields.
2. Verify monitor binding and cache timers.
3. Confirm interface/direction.
4. Generate controlled traffic and inspect cache.
5. Verify exporter counters and collector templates/data.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it to see who talks to whom and how much — top talkers, unexpected traffic, capacity — and when the collector shows…
What next?3 suggested next steps
Child topics (this level)5
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

The collector shows no data for this device, or only for some interfaces.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify monitor definition, exporter/record attachment, interface/direction and cache counters with generated traffic.

Verification chain: Packet → flow record key → monitor attachment → cache entry → exporter → collector

Stop condition: An empty cache does not show NetFlow is broken until attachment, direction and traffic are confirmed.

Step 2 Layered verification and original-test closure Verify boundary

Flexible NetFlow — Generate a known flow, confirm it appears in the local cache with expected key fields, then verify exporter counters and collector receipt for the same timestamped flow.

Step 3 Verification and output interpretation Verify boundary

Verify the object chain rather than only one command. show flow record shows the selected match/collect fields, show flow monitor and cache output show whether packets are being classified into flows, and show flow exporter exposes destination, source, transport and export statistics. Confirm the monitor is actually attached to the intended interface and direction. A growing flow cache with sensible packet/byte counters is evidence that the observation point sees traffic. Export packet counters or successful datagram statistics show that the device attempted or completed export, but they still do not show the external collector parsed, retained or indexed the records. When counts look wrong, compare traffic direction, sampling if present, flow aging, key choice and whether the tested traffic really crosses the monitored interface.

Step 4 Step-by-step troubleshooting Narrow the fault

Boundary rule: An empty cache does not show NetFlow is broken until attachment, direction and traffic are confirmed.

Step 5 Branching troubleshooting Narrow the fault

Path: Networking → Network Assurance → Flexible NetFlow. Local intent: Flexible NetFlow reference for flow keys, non-key fields, monitors, exporters, interface attachment, cache behavior and interpretation of exported telemetry.

Step 6 Observation → implication → next check Narrow the fault

Flexible NetFlow — If the collector is empty, first confirm the monitor is attached to the expected interface/direction and the cache increments. If cache entries exist but exports do not, inspect exporter destination, source, VRF and transport counters.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Four parts must be linked: record → monitor → interface (direction) → exporter. A monitor on input only does not see return traffic. The collector must know the exporter's source address and the template. Flows are exported only after they time out.

Key checks
  • show flow interface <interface> — monitors attached, and in which direction.
  • show flow monitor <name> cache — flows currently in the cache.
  • show flow monitor <name> statistics — cache size, flows added and aged.
  • show flow exporter <name> statistics — records sent, and any send failures.
  • show running-config | section flow — the whole configuration.
ReferenceHow it works1 section · depth on demand

Operational mechanics and ownership

Flexible NetFlow — Flexible NetFlow separates records, flow monitors, exporters and interface attachment. A configured exporter does nothing until a monitor using a record is applied in the correct direction. The forwarding path creates flow-cache entries, the monitor defines collection, and the exporter sends records. Cache population and export transport are separate things to check with separate counters.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Flexible NetFlow

Flexible NetFlow records which flows pass through a device. Cisco's IOS XE Flexible NetFlow guide describes its components: a flow record of key fields (match, which define a flow) and non-key fields (collect, such as byte and packet counters), a flow monitor that applies the record to interfaces and keeps a cache, a flow exporter that sends cache data to a collector over UDP in version 9 format, and an optional sampler that reduces load at the cost of accuracy.

Key and non-key fields (FNF guide)

TypeRoleExamples
Key (match)A new unique value creates a new flowSource/destination address, protocol, ports, input interface
Non-key (collect)Added to existing flowsBytes, packets, timestamps, TCP flags
R1(config)# flow record FR-BASIC
R1(config-flow-record)# match ipv4 source address
R1(config-flow-record)# match ipv4 destination address
R1(config-flow-record)# match ipv4 protocol
R1(config-flow-record)# match transport source-port
R1(config-flow-record)# match transport destination-port
R1(config-flow-record)# match interface input
R1(config-flow-record)# collect counter bytes long
R1(config-flow-record)# collect counter packets long
R1(config-flow-record)# collect timestamp absolute first
R1(config)# flow exporter FE-COLLECTOR
R1(config-flow-exporter)# destination 10.99.0.30
R1(config-flow-exporter)# source Loopback0
R1(config-flow-exporter)# transport udp 2055
R1(config)# flow monitor FM-WAN
R1(config-flow-monitor)# record FR-BASIC
R1(config-flow-monitor)# exporter FE-COLLECTOR
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# ip flow monitor FM-WAN input
R1# show flow monitor FM-WAN cache sort highest counter bytes top 3
R1# show flow exporter FE-COLLECTOR statistics

Requirements and limits (FNF guide)

PointDetail
CEFMust be enabled (IPv4 and IPv6)
Layer 2 interfacesNot supported
Export over IPsec terminated on the same routerMay need output-features under the exporter
CacheNormal cache entries age out by active and inactive timeouts

Uses

UseExample
Capacity planningTop talkers and applications per link
TroubleshootingWhich flows filled a link at 10:40
SecurityScans, unusual destinations, data exfiltration
Billing and reportingTraffic per site or customer

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

Flexible NetFlow separates classification, collection and export. A flow record defines the key fields that identify a flow and the non-key fields that are collected for that flow. A flow monitor binds a record to a cache, maintains flow state and applies aging/export behavior. An exporter defines where exported records are sent and with which source, transport and destination parameters. The monitor is then attached to one or more interfaces in an ingress or egress direction. Packets must cross that observation point and match the record semantics before cache entries appear. This object model matters operationally: a syntactically valid exporter does not create flows by itself, and a monitor can collect useful local cache state even when no exporter is configured. Flow identity also depends on the chosen keys; adding source/destination addresses, ports, protocol, VLAN or other keys changes aggregation and therefore the number and meaning of cache entries.

Limits and common misconceptions

Flexible NetFlow is metadata telemetry, not a packet capture. It can tell you who talked to whom, with what protocol and how many packets or bytes according to the configured record, but it does not normally preserve application payload. A zero-flow cache is not automatically an exporter fault; the monitor may be attached to the wrong interface/direction or the traffic may not cross that point. Conversely, exporter success does not show the collector stored the information. Flow counts are not connection counts unless the key definition makes them equivalent, and bidirectional application activity may appear as separate unidirectional flows. NAT, tunneling and service chaining can also make pre- and post-transformation observations look different. Preserve the record definition whenever using flow data as evidence because the key set determines what the counters actually represent.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Design Flexible NetFlow from the question the telemetry must answer. Choose only the match keys needed to distinguish useful conversations, then add collect fields for counters, timestamps, interface information or other context. Build the record first, bind it to a monitor, configure cache/aging where required, create an exporter with an intentional source interface and reachable collector destination, then attach the monitor to the correct interfaces and direction. Ingress and egress observation answer different questions and can produce different counts because features such as routing, NAT, policy and encapsulation may alter the packet between observation points. Keep template/export compatibility with the collector in mind, and avoid very high-cardinality records unless the platform and collector capacity can absorb the resulting cache and export rate. Document the observation point so exported data is not later mistaken for end-to-end packet capture.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → Flexible NetFlow. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE 17.x 17.x

Official Cisco vendor documentation reviewed for bounded reference claims: flow record/monitor/exporter/interface object model. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/ntw-servs/b-network-services/m_fnf-fnetflow.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
flexible netflownetflowflow record monitor exportertraffic telemetry
Embedded reference data

Quick lookup tables

NetFlow / Flexible NetFlow evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show flow monitor <name> cacheremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?packet at observation point → record key → monitor cache → expiration → exporter → collector decodeapplication success

Flexible NetFlow · operational reference

Compact state and interpretation boundaries for fast lookup.

LayerCanonical evidenceInterpretation
RecordMatch + collect fieldsDefines flow identity and collected metadata
Monitor/cacheActive flow entries and countersTraffic crosses the observation point
Interface attachmentMonitor + directionDefines where packets are observed
ExporterDestination/source/export statsDevice sends records toward collector
Confirmation

Confirm action

Continue?