Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Flow Record

Direct answer

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).

When to use this

Use it when defining what makes a NetFlow flow unique and which fields are collected.

First 30 seconds

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.

Operational verification

record (keys + collected) → flow identification → statistics

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
Key commandflow record <name>
Scope / prerequisiteUse it when defining what makes a NetFlow flow unique and which fields are collected.
Reference · 11
What next?3 suggested next steps
Catalog command links11
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

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

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.

Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • 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:

TypeCommandRole
Key fieldsmatch …Identify the flow; packets with the same key values belong to the same flow
Non-key fieldscollect …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

PointDetail
Predefined recordsNot supported for regular FNF; define your own
bytes longInaccurate for non-802.3 traffic; the guide recommends bytes layer2 long
IPv6 and datalink recordsUse two table entries per flow, halving effective capacity

Designing a record

GoalKey fields
Classic 5-tuple traffic analysisSource/destination IP, protocol, source/destination port
Who talks to whom (lighter)Source/destination IP only
Application identificationAdd destination port, or use the collector's application mapping
Interface accountingAdd 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.

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

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.

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

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
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 → 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%
Embedded reference data

Quick lookup tables

Flow Record · operational reference

Compact state and interpretation boundaries for fast lookup.

Record elementRoleOperational effect
Match fieldFlow keySplits traffic into distinct flows
Collect fieldAttribute/counterAdds context without splitting identity
Key cardinalityNumber of distinct combinationsDrives cache/export scale
Template/schemaExport field contractCollector must interpret same fields
Confirmation

Confirm action

Continue?