Skip to content

tusharkumbhar6/nifi-netflow

 
 

Repository files navigation

Netflow Parser for NiFi

This is a WIP (i.e. it does not work)

The bundle will contain NiFi processors to consume and Parse Netflow 9 including options and templates

Known Issues:

If you reeceive a packet which only consists of templates, which is reaonsably common, it will lead to the flow file being sent to parse.failure, since no actual flow records are emitted. Fixing this requires some upstream changes in the record reader api to allow flow files with no records to be ignored.

Building

I build against NiFi 1.5.0, but 1.4.0 should work. This is my build command (note I keep a copy of NiFi lying around in home, and have added custom to the NiFi library paths)

mvn package && \
cp nifi-netflow-nar/target/nifi-netflow-nar-0.0.1.nar \
~/nifi-1.5.0-SNAPSHOT/custom/

copy the resulting nar from nifi-netflow-nar/target to your nifi custom library directory and restart nifi.

Example use

The reader provides a record reader service which is intended to be used with the ListenUDPRecord processor to interpret NetFlow.

Sample Flow

The template included in the root of this repo provides an example, but may need some rewiring for your build. The template also uses unusual ports (I was testing) so you're likely to need to change the listening port to something like 2055 which is a more common Netflow port.

About

Netflow related processors for Apache NiFi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%