Friday, February 8, 2008

NFDUMP - collect and process netflow data on the command line

NFDUMP - collect and process netflow data on the command line
The nfdump tools collect and process netflow data on the command line. They are part of the NfSen project which is explained more detailed at http://www.ripe.net/ripe/meetings/ripe-50/presentations/ripe50-plenary-tue-nfsen-nfdump.pdf
The Web interface is a separate project and available at http://sourceforge.net/projects/nfsen/


NFDUMP tools overview
All tools support netflow v5, v7 and v9.

nfcapd - netflow capture daemon.
Reads the netflow data from the network and stores the data into files. Automatically rotate files every n minutes. ( typically ever 5 min ) nfcapd reads netflow v5, v7 and v9 flows transparently. You need one nfcapd process for each netflow stream.

nfdump - netflow dump.
Reads the netflow data from the files stored by nfcapd. It's syntax is similar to tcpdump. If you like tcpdump you will like nfdump. Displays netflow data and can create lots of top N statistics of flows IP addresses, ports etc ordered by whatever order you like.

nfprofile - netflow profiler.
Reads the netflow data from the files stored by nfcapd. Filters the netflow data according to the specified filter sets ( profiles ) and stores the filtered data into files for later use.

nfreplay - netflow replay
Reads the netflow data from the files stored by nfcapd and sends it over the network to another host.

nfclean.pl - cleanup old data
Sample script to cleanup old data. You may run this script every hour or so.

ft2nfdump - Read and convert flow-tools data.
Reads flow-tools data from files or from stdin in a chain of flow-tools commands and converts the data into nfdump format to be processed by nfdump.

No comments: