Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3187

Make Host Interceptor preserve hostname and IP address at the same time

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.8.0
    • None
    • Build

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wenqiao tinawenqiao
            wenqiao tinawenqiao

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment