You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by turcsanyip <gi...@git.apache.org> on 2018/11/08 18:21:27 UTC

[GitHub] flume pull request #234: FLUME-3133 Add client IP / hostname headers to Sysl...

GitHub user turcsanyip opened a pull request:

    https://github.com/apache/flume/pull/234

    FLUME-3133 Add client IP / hostname headers to Syslog sources.

    In the newer version of the Syslog message format (RFC-5424) the hostname
    is not a mandatory header anymore so the Syslog client might not send it.
    On the Flume side it would be a useful information that could be used
    in interceptors or for event routing.
    To keep this information, two new properties have been added to the Syslog
    sources: clientIPHeader and clientHostnameHeader.
    Flume users can define custom event header names through these parameters
    for storing the IP address / hostname of the Syslog client in the Flume
    event as headers.
    The IP address / hostname are retrieved from the underlying network sockets,
    not from the Syslog message.
    
    This change is based on the patch submitted by Jinjiang Ling which has been
    rebased onto the current trunk and the review comments have been implemented.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/turcsanyip/flume FLUME-3133

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flume/pull/234.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 #234
    
----
commit ec5af4aaf9cf9884ca6a9d4ef681a5fa4c4155a6
Author: turcsanyi <tu...@...>
Date:   2018-11-08T14:32:59Z

    FLUME-3133 Add client IP / hostname headers to Syslog sources.
    
    In the newer version of the Syslog message format (RFC-5424) the hostname
    is not a mandatory header anymore so the Syslog client might not send it.
    On the Flume side it would be a useful information that could be used
    in interceptors or for event routing.
    To keep this information, two new properties have been added to the Syslog
    sources: clientIPHeader and clientHostnameHeader.
    Flume users can define custom event header names through these parameters
    for storing the IP address / hostname of the Syslog client in the Flume
    event as headers.
    The IP address / hostname are retrieved from the underlying network sockets,
    not from the Syslog message.
    
    This change is based on the patch submitted by Jinjiang Ling which has been
    rebased onto the current trunk and the review comments have been implemented.

----


---

[GitHub] flume pull request #234: FLUME-3133 Add client IP / hostname headers to Sysl...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/flume/pull/234


---