netty-codec-syslog

A pom for deploying to maven central.

License

License

Categories

Categories

Net Netty Networking
GroupId

GroupId

com.github.jcustenborder.netty
ArtifactId

ArtifactId

netty-codec-syslog
Last Version

Last Version

0.3.23
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

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

Source Code Management

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

Download netty-codec-syslog

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
org.immutables : value jar 2.5.5
com.fasterxml.jackson.core : jackson-databind jar 2.9.5
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.9.5
com.fasterxml.jackson.dataformat : jackson-dataformat-avro jar 2.9.5
javax.annotation : javax.annotation-api jar 1.3.2

provided (2)

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

test (5)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.0.0
org.junit.jupiter : junit-jupiter-api jar 5.0.0
org.mockito : mockito-core jar 2.18.3
ch.qos.logback : logback-classic jar 1.1.8
org.graylog2 : syslog4j jar 0.9.60

Project Modules

There are no modules declared in this project.

Maven Central

Introduction

This project provides a Netty based solution for receiving syslog messages. The following formats are currently supported. The mechanism for parsing log messages is plugable. You can add support for additional formats by implementing a MessageParser for the format you wish to support.

Setting up a listener

UDP

     Bootstrap b = new Bootstrap();
     b.group(workerGroup)
         .channel(NioDatagramChannel.class)
         .handler(new ChannelInitializer<DatagramChannel>() {
           @Override
           protected void initChannel(DatagramChannel datagramChannel) throws Exception {
             ChannelPipeline channelPipeline = datagramChannel.pipeline();
             channelPipeline.addLast(
                 new UDPSyslogMessageDecoder(),
                 new SyslogMessageHandler(),
                 handler
             );
           }
         });
 
     return b.bind(InetAddress.getLoopbackAddress(), port());

Building

mvn clean install

Versions

Version
0.3.23
0.3.20
0.3.19
0.3.18
0.3.17
0.2.16
0.2.14
0.2.11
0.2.7
0.1.10
0.1.8
0.1.5
0.1.4
0.1.3
0.1.2