Skip to main content

Collect NetFlow

This page explains how to collect NetFlow version 5 flow records. Each flow record becomes a network event with source and destination addresses and ports, protocol, bytes and packets.

Role needed: nobody needs a console permission to receive flows. You configure the exporter on the network device, and you read the events with a role that can use Search.

What is supported​

  • NetFlow version 5 only. NetFlow version 9 and IPFIX are not supported, and packets of any other version are discarded.
  • Flow records arrive on UDP port 2055. See Appliance requirements for the ports to open. The port cannot be changed in the console.
  • A packet carries at most 30 flow records. A packet with a different length from the one its header declares is discarded.
  • If the exporter reports a sampling rate, bytes and packets are scaled by it.

Allow UDP 2055 only from your flow exporters.

Configure the exporter​

On the router or switch, configure NetFlow version 5 export to the appliance address on UDP port 2055, for example 192.0.2.5. The commands depend on the device; see its documentation.

Find the events​

Open Search. Flow events have the dataset netflow. Each event has the exporter's address, the source and destination address and port, the protocol, bytes and packets. With Geo Lookup on, public addresses also get location fields. See How events are parsed.

To check that flows arrive, run this over Last 15 Minutes:

source=log_* | where event.dataset = 'netflow'

If nothing is listed, check that the exporter sends version 5 to UDP port 2055 and that your firewall allows it. See Events are not arriving.

Next steps​