NetFlow Visibility with Open Source Tools: Akvorado, GoFlow2, and pmacct

Five posts on NetFlow v9 from Cisco IOS XE into open source collectors: Akvorado setup and top talkers, the double-counting trap, Akvorado vs GoFlow2 with matching byte totals but 2.4 GiB vs 146 MiB, scan detection, and pmacct to CSV and SQL.

Diagram: NetFlow visibility series. IOS XE routers export NetFlow v9 to three collectors: Akvorado, highlighted, with ClickHouse and SNMPv3 enrichment; GoFlow2 with Loki as the light stack; a

This is the hub for the PingLabz flow visibility series. SNMP tells you a link is busy. Flow data tells you who is making it busy, and that's the question you get asked during an outage. These five posts were built in my home lab with two Cisco IOS XE 17.18.2 routers exporting NetFlow v9 to open source collectors.

The first post sets up Akvorado v2026.10.1: the exporter config on the router, SNMPv3 interface enrichment, classifiers, the Sankey view and top talkers. It also covers the ClickHouse crash on CPUs without AVX2 and how I fixed it. The second post uses that setup to answer "who is eating the WAN?" with boundary filters and path drill-down. It also shows the double-counting trap you fall into when you count flows on both ends of a link, and how to check the router's own flow cache.

The third post feeds the same flows into Akvorado and into a lighter GoFlow2 plus Loki stack. The byte totals match exactly. The memory doesn't: about 2.4 GiB against 146 MiB. I compare storage and LogQL against SQL, and show where the lighter stack stops being enough.

The last two posts go past bandwidth. Port scans and ping sweeps barely show up in traffic graphs, but counting distinct ports and hosts per source in ClickHouse finds them quickly. pmacct's nfacctd 1.7.9 turns the same NetFlow into per-minute CSV files and a SQLite table, which suits scripts and reports better than dashboards. I cross-checked its numbers against Akvorado.

Diagram: NetFlow visibility series. IOS XE routers export NetFlow v9 to three collectors: Akvorado, highlighted, with ClickHouse and SNMPv3 enrichment; GoFlow2 with Loki as the light stack; and pmacct nfacctd writing CSV and SQLite. Akvorado drives security views (scans, sweeps, distinct ports and hosts) and top talkers with Sankey and path drill-down, GoFlow2 also shows top talkers, and pmacct feeds scripted reports and cross-checks.

The series in reading order

  1. Akvorado on Cisco IOS XE: NetFlow v9 Analytics with ClickHouse and SNMPv3 Enrichment. NetFlow v9 into Akvorado with SNMPv3 enrichment, classifiers, Sankey, and the ClickHouse AVX2 fix.
  2. Find NetFlow Top Talkers on Cisco IOS XE: Who Is Eating the WAN?. Finding the host hogging a WAN link, and avoiding the double-counting trap.
  3. Akvorado vs GoFlow2 and Loki for NetFlow: Same Byte Counts, 2.4 GiB vs 146 MiB. The same flows into two stacks: matching totals, very different memory, and where the light one runs out.
  4. Detect Port Scans and Ping Sweeps with NetFlow on Cisco IOS XE. Counting distinct ports and hosts per source to find scans and sweeps.
  5. pmacct nfacctd for Cisco NetFlow: Per-Minute CSV and SQLite Accounting. nfacctd to per-minute CSV and SQLite, cross-checked against Akvorado.

Where to start

Who this is for: engineers who already export NetFlow or IPFIX and want more than a pie chart. Start with part 1, or with part 3 if you're still choosing a collector. For flows inside Grafana, see the NetFlow post in the Grafana series.

Read next