You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Jinjiang Ling (JIRA)" <ji...@apache.org> on 2017/07/20 08:49:00 UTC

[jira] [Updated] (FLUME-3133) Add a ipHeader config in Syslog Sources

     [ https://issues.apache.org/jira/browse/FLUME-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jinjiang Ling updated FLUME-3133:
---------------------------------
    Attachment: FLUME-3133.patch

Add a patch

> 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
>         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
(v6.4.14#64029)