Networking · Network Assurance › Flexible NetFlow
Flow Record
Cheat sheet · https://pcornel.dk/topic.php?topic=731
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).
Remember
- 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.
First checks
show flow record <name>— match/collect fields
Commands
flow record <name>- Create a Flexible NetFlow record defining match keys and collected fields.
match ipv4 source address- Use the IPv4 source address as a flow key.
match ipv4 destination address- Use the IPv4 destination address as a flow key.
match ip protocol- Use the IP protocol as a flow key in a NetFlow record.
match transport source-port- Use the transport source port as a flow key.
match transport destination-port- Use the transport destination port as a flow key.
collect counter bytes long- Collect byte counts in a Flexible NetFlow record.
collect counter packets long- Collect packet counts in a Flexible NetFlow record.
collect timestamp sys-uptime first- Collect the timestamp of the first packet of each flow.
collect timestamp sys-uptime last- Collect the timestamp of the last packet of each flow.
show flow monitor <name> cache- Display flows currently in a NetFlow monitor cache.
show flow record <name>
Verify in this order
record (keys + collected) → flow identification → statistics
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
Flow Record · operational reference
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=731