You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flume.apache.org by "Ferenc Szabo (JIRA)" <ji...@apache.org> on 2018/11/08 11:29:00 UTC

[jira] [Updated] (FLUME-3187) Make Host Interceptor preserve hostname and IP address at the same time

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

Ferenc Szabo updated FLUME-3187:
--------------------------------
    Status: Patch Available  (was: Open)

> Make Host Interceptor preserve hostname and IP address at the same time
> -----------------------------------------------------------------------
>
>                 Key: FLUME-3187
>                 URL: https://issues.apache.org/jira/browse/FLUME-3187
>             Project: Flume
>          Issue Type: New Feature
>          Components: Build
>    Affects Versions: 1.8.0
>            Reporter: tinawenqiao
>            Assignee: tinawenqiao
>            Priority: Major
>              Labels: Host, interceptor
>             Fix For: 1.9.0
>
>         Attachments: FLUME-3187_1.patch
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> Now Host interceptor can only insert the hostname or only IP address of the host into the event header. But in some scenarios, the hostname and IP address should be preserved at the same time.
> Add a config useHostname in Host interceptor. When useIP=true and useHostname=true, the hostname and IP address will both be put into the event header. The header key of hostname and IP can also be customed. The config can be used like this:
>   a1.sources = r1
>   a1.channels = c1
>   a1.sources.r1.interceptors = i1
>   a1.sources.r1.interceptors.i1.type = host
>   a1.sources.r1.interceptors.i1.useIP = true
>   a1.sources.r1.interceptors.i1.useHostname = true
>   a1.sources.r1.interceptors.i1.ip = ipKey
>   a1.sources.r1.interceptors.i1.hostname = hostnameKey



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org