Use it when defining what makes a NetFlow flow unique and which fields are collected.
Flow Record
A Flexible NetFlow record defines the key fields that make flows unique (match, for example source/destination address and ports) and the non-key fields collected (collect, such as bytes and packets).
1. A flow record defines key fields (match) and collected fields (collect).
2. Keys identify flows (5-tuple, DSCP, interface).
3. Collect counters and timestamps.
4. Too many keys increase flows.
5. Match collector expectations.
record (keys + collected) → flow identification → statistics
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
flow record <name>Primary Commands
Configuration and operational commands for this Topic.
flow record <name>ReferenceCreate a Flexible NetFlow record defining match keys and collected fields.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedmatch ipv4 source addressReferenceUse the IPv4 source address as a flow key.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedmatch ipv4 destination addressReferenceUse the IPv4 destination address as a flow key.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedmatch ip protocolReferenceUse the IP protocol as a flow key in a NetFlow record.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedmatch transport source-portReferenceUse the transport source port as a flow key.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedmatch transport destination-portReferenceUse the transport destination port as a flow key.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedcollect counter bytes longReferenceCollect byte counts in a Flexible NetFlow record.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedcollect counter packets longReferenceCollect packet counts in a Flexible NetFlow record.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedcollect timestamp sys-uptime firstReferenceCollect the timestamp of the first packet of each flow.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedcollect timestamp sys-uptime lastReferenceCollect the timestamp of the last packet of each flow.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Use show flow record <name> to read the effective match and collect field list. Verify that the fields shown match the intended question and that the record is referenced by the expected flow monitor. Then inspect monitor cache output and confirm that example cache keys correspond to real traffic. If flow counts appear unexpectedly high, look for overly granular key fields; if they are unexpectedly low, look for missing keys that aggregate unrelated conversations. Exported templates should also reflect the record schema, so collector-side field interpretation must agree with what the device advertises. A record that parses correctly but is not bound to an active monitor produces no useful telemetry by itself.
- Match fields define the flow key; collect fields add measurements
- The monitor binds record and exporter
- Interface and direction determine observation point
- Cache population and exporter delivery are separate evidence boundaries.
show flow record <name>— match/collect fields
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to answer who communicated, where, how much and when without treating flow records as packet captures.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
The flow record defines what makes a flow and what is counted for it
The Catalyst 9300 Flexible NetFlow guide explains that a flow record has two kinds of fields:
| Type | Command | Role |
|---|---|---|
| Key fields | match … | Identify the flow; packets with the same key values belong to the same flow |
| Non-key fields | collect … | Information gathered for the flow; a change doesn't create a new flow |
C9300(config)# flow record FR-IPV4
C9300(config-flow-record)# match ipv4 source address
C9300(config-flow-record)# match ipv4 destination address
C9300(config-flow-record)# match ipv4 protocol
C9300(config-flow-record)# match transport source-port
C9300(config-flow-record)# match transport destination-port
C9300(config-flow-record)# match interface input
C9300(config-flow-record)# collect counter bytes layer2 long
C9300(config-flow-record)# collect counter packets long
C9300(config-flow-record)# collect timestamp absolute first
C9300(config-flow-record)# collect timestamp absolute last
C9300(config-flow-record)# collect transport tcp flags
C9300# show flow record FR-IPV4
Documented points for Catalyst 9000
| Point | Detail |
|---|---|
| Predefined records | Not supported for regular FNF; define your own |
bytes long | Inaccurate for non-802.3 traffic; the guide recommends bytes layer2 long |
| IPv6 and datalink records | Use two table entries per flow, halving effective capacity |
Designing a record
| Goal | Key fields |
|---|---|
| Classic 5-tuple traffic analysis | Source/destination IP, protocol, source/destination port |
| Who talks to whom (lighter) | Source/destination IP only |
| Application identification | Add destination port, or use the collector's application mapping |
| Interface accounting | Add match interface input (or collect output interface) |
Every additional key field multiplies the number of flows. A record with ports as keys can need many times the table entries of an IP-pair record.
Documented example, not captured output.
Quick reference
A Flexible NetFlow flow record defines what makes a flow unique (match/key fields) and what is collected about it (collect/non-key fields). Different records can be used for different purposes, such as security analysis or bandwidth accounting.
flow record NF-REC
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match ipv4 protocol
match interface input
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
Documented example, not captured output.
Adding more key fields creates more flows and uses more cache memory.
State model and protocol mechanics
A Flexible NetFlow flow record is the schema used by a monitor to classify packets into cache entries. Fields configured with match participate in the flow key: packets that differ in any key field belong to different flows. Fields configured with collect are stored as attributes or counters without creating a new flow identity. This difference is fundamental. A record keyed only by source and destination addresses aggregates all transport conversations between those hosts, while adding protocol and transport ports creates finer-grained flows. Interface, VLAN, direction, ToS/DSCP and routing context can also change what the record means. Cisco platforms may provide predefined records and user-defined records; regardless of origin, the effective key/collect schema must be known before interpreting cache or exported data.
Limits and common misconceptions
A Flow Record does not select interfaces, schedule export or guarantee collector delivery. It is a schema, not the complete telemetry pipeline. Match fields should not be interpreted as filters unless the feature explicitly applies filtering elsewhere; they describe how observed packets are grouped. Packet and byte totals are only meaningful within that grouping and the cache lifetime. Renaming or recreating a record with different keys can silently change historical meaning even if the monitor name remains constant. Likewise, a field being absent from the record means the telemetry cannot later answer questions that depend on that field. Treat record design as a data-contract decision between the device and downstream analysis, and preserve the exact schema with any operational evidence.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Start from the intended analytical question and design the smallest useful key set. For conversation-level telemetry, source/destination IP, protocol and transport ports are common keys; for capacity or path analysis, interface and routing fields may be more important. Add packet/byte counters and timestamps as collected fields so the flow has operational value. Avoid turning every available field into a key: unnecessary keys increase cache cardinality, memory pressure, export volume and collector load. Keep records stable where long-term trend comparison matters because changing the key set changes the aggregation model and breaks direct comparability with older data. If IPv4 and IPv6 require different field families, use explicit records rather than assuming one schema captures both identically.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → Flexible NetFlow → Flow Record. 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%Quick lookup tables
Flow Record · operational reference
Compact state and interpretation boundaries for fast lookup.
| Record element | Role | Operational effect |
|---|---|---|
| Match field | Flow key | Splits traffic into distinct flows |
| Collect field | Attribute/counter | Adds context without splitting identity |
| Key cardinality | Number of distinct combinations | Drives cache/export scale |
| Template/schema | Export field contract | Collector must interpret same fields |