netty-codec-netflow

A pom for deploying to maven central.

License

License

Categories

Categories

Net Netty Networking
GroupId

GroupId

com.github.jcustenborder.netty
ArtifactId

ArtifactId

netty-codec-netflow
Last Version

Last Version

0.0.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

netty-codec-netflow
A pom for deploying to maven central.
Project URL

Project URL

https://github.com/jcustenborder/netty-codec-netflow
Source Code Management

Source Code Management

https://github.com/jcustenborder/netty-codec-netflow

Download netty-codec-netflow

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jcustenborder.netty/netty-codec-netflow/ -->
<dependency>
    <groupId>com.github.jcustenborder.netty</groupId>
    <artifactId>netty-codec-netflow</artifactId>
    <version>0.0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jcustenborder.netty/netty-codec-netflow/
implementation 'com.github.jcustenborder.netty:netty-codec-netflow:0.0.1.4'
// https://jarcasting.com/artifacts/com.github.jcustenborder.netty/netty-codec-netflow/
implementation ("com.github.jcustenborder.netty:netty-codec-netflow:0.0.1.4")
'com.github.jcustenborder.netty:netty-codec-netflow:jar:0.0.1.4'
<dependency org="com.github.jcustenborder.netty" name="netty-codec-netflow" rev="0.0.1.4">
  <artifact name="netty-codec-netflow" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jcustenborder.netty', module='netty-codec-netflow', version='0.0.1.4')
)
libraryDependencies += "com.github.jcustenborder.netty" % "netty-codec-netflow" % "0.0.1.4"
[com.github.jcustenborder.netty/netty-codec-netflow "0.0.1.4"]

Dependencies

provided (2)

Group / Artifact Type Version
io.netty : netty-all jar 4.1.7.Final
org.slf4j : slf4j-api jar 1.7.21

test (6)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.0.0-M3
org.junit.jupiter : junit-jupiter-api jar 5.0.0-M3
org.mockito : mockito-all jar 1.10.19
ch.qos.logback : logback-classic jar 1.1.8
com.fasterxml.jackson.core : jackson-databind jar 2.8.5
com.fasterxml.jackson.core : jackson-annotations jar 2.8.5

Project Modules

There are no modules declared in this project.

Introduction

This project provides support for receiving NetFlow data from network devices using Netty. Currently only NetFlow v9 is supported. There are plans to support NetFlow v5 in a future release.

Usage

Pipeline Configuration

Bootstrap b = new Bootstrap();
b.group(bossGroup)
    .channel(NioDatagramChannel.class)
    .handler(new ChannelInitializer<DatagramChannel>() {
      @Override
      protected void initChannel(DatagramChannel datagramChannel) throws Exception {
        ChannelPipeline channelPipeline = datagramChannel.pipeline();
        channelPipeline.addLast(
            new LoggingHandler("NetFlow", LogLevel.TRACE),
            new NetFlowV9Decoder(),
            new NetFlowV9RequestHandler()
        );
      }
    });

NetFlow Message Processing

class NetFlowV9RequestHandler extends SimpleChannelInboundHandler<NetFlowV9Decoder.NetFlowMessage> {
  @Override
  protected void channelRead0(ChannelHandlerContext channelHandlerContext, NetFlowV9Decoder.NetFlowMessage netFlowMessage) throws Exception {

  }
}

Versions

Version
0.0.1.4
0.0.1.3