[
https://issues.apache.org/jira/browse/FLUME-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686525#comment-16686525
]
Hudson commented on FLUME-3133:
-------------------------------
SUCCESS: Integrated in Jenkins build Flume-trunk-hbase-1 #364 (See
[https://builds.apache.org/job/Flume-trunk-hbase-1/364/])
FLUME-3133 Add client IP / hostname headers to Syslog sources. (szaboferee:
[http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=671fc3f1b6d6b2239b171f582b189d0fbadedb6f])
* (edit) flume-ng-core/src/main/java/org/apache/flume/source/SyslogUtils.java
* (edit)
flume-ng-core/src/test/java/org/apache/flume/source/TestSyslogTcpSource.java
* (edit)
flume-ng-core/src/main/java/org/apache/flume/source/MultiportSyslogTCPSource.java
* (edit) flume-ng-doc/sphinx/FlumeUserGuide.rst
* (edit)
flume-ng-core/src/main/java/org/apache/flume/source/SyslogSourceConfigurationConstants.java
* (edit)
flume-ng-core/src/test/java/org/apache/flume/source/TestMultiportSyslogTCPSource.java
* (edit)
flume-ng-core/src/test/java/org/apache/flume/source/TestSyslogUtils.java
* (edit)
flume-ng-core/src/main/java/org/apache/flume/source/SyslogTcpSource.java
* (edit)
flume-ng-core/src/main/java/org/apache/flume/source/SyslogUDPSource.java
* (edit)
flume-ng-core/src/test/java/org/apache/flume/source/TestSyslogUdpSource.java
> Add a ipHeader config in Syslog Sources
> ---------------------------------------
>
> Key: FLUME-3133
> URL: https://issues.apache.org/jira/browse/FLUME-3133
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Affects Versions: 1.7.0
> Reporter: Jinjiang Ling
> Assignee: Peter Turcsanyi
> Priority: Major
> Fix For: 1.9.0
>
> Attachments: FLUME-3133.patch
>
>
> When I use the syslog source to collect log from other hosts, my config like
> this
> {quote}
> ...
> a1.sources.r1.host = 0.0.0.0
> a1.sources.r1.ports = 5140
> ...
> {quote}
> I'm using the "host" header to tell where the event come from.
> However, when the syslog format is changed, the "host" header will miss.
> In this sence, I couldn't tell where the event come from.
> So I add a new config "ipHeader", it's similar to "portHeader" in Multiport
> Syslog TCP Source.
> It can be used like this
> {quote}
> ...
> a1.sources.r1.host = 0.0.0.0
> a1.sources.r1.ports = 5140
> a1.sources.r1.ipHeader = test_ip_header
> ...
> {quote}
> Then I can get a header named "test_ip_header" in the event, the value is the
> ip of host which send this event.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]