[
https://issues.apache.org/jira/browse/NIFI-1273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107635#comment-15107635
]
ASF GitHub Bot commented on NIFI-1273:
--------------------------------------
GitHub user bbende opened a pull request:
https://github.com/apache/nifi/pull/179
NIFI-1273 Adding ListenRELP Processor
This pull request adds a ListenRELP processor which includes refactoring
code that was previously part of ListenSyslog into a reusable framework for
implementing listener processors, as well as back-end code for handling the
RELP protocol.
## Overivew
* The listen package in nifi-processor-utils contains the generic
dispatcher/handler code along with an AbstractListenEventProcessor which is the
base class for future processors that want to act as a server reading data off
a channel.
* The relp package in nifi-standard-processors contains the RELP specific
implementations for the "listen" classes, along with other back-end code for
the RELP protocol.
* ListenRELP extends AbstractListenEventProcessor
## Testing
I tested this against rsyslog 8.x putting the following in
/etc/rsyslog.conf:
module(load="omrelp")
action(type="omrelp" target="centralserv" port="2514")
With TLS:
action(type="omrelp" target="192.168.233.153″ port="20514″ tls="on"
tls.caCert="/home/test/cert/ca.pem"
tls.myCert="/home/test/cert/ubuntu1-cert.pem"
tls.myPrivKey="/home/test/cert/ubuntu1-key.pem"
tls.authmode="name"
tls.permittedpeer=["ubuntu-server"]
)
RELP Reference:
http://www.rsyslog.com/doc/relp.html
http://www.rsyslog.com/using-tls-with-relp/
RELPFrameProducer in nifi-standard-processors
src/test/java/org.apache.nifi.processors.standard.relp can also be used to act
as an rsyslog server sending messages to ListenRELP.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bbende/nifi NIFI-1273
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/179.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #179
----
commit ed23c57d3a1f9c07f91f67d0ed42c10f91558f40
Author: Bryan Bende <[email protected]>
Date: 2016-01-05T22:41:33Z
NIFI-1273 Adding ListenRELP processor which includes refactoring code that
was previously part of ListenSyslog into a reusable framework for implementing
listener processors, as well as back-end code for handling the RELP protocol.
----
> Add support for RELP in ListenSyslog
> ------------------------------------
>
> Key: NIFI-1273
> URL: https://issues.apache.org/jira/browse/NIFI-1273
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Tony Kurc
> Assignee: Bryan Bende
> Priority: Minor
> Fix For: 0.5.0
>
>
> Add support for listening for syslog events using The Reliable Event Logging
> Protocol (RELP) [1]
> http://www.rsyslog.com/doc/relp.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)