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

Add a ipHeader config in Syslog Sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.9.0
    • Sinks+Sources
    • None

    Description

      When I use the syslog source to collect log from other hosts, my config like this

      ...
      a1.sources.r1.host = 0.0.0.0
      a1.sources.r1.ports = 5140
      ...

      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

      ...
      a1.sources.r1.host = 0.0.0.0
      a1.sources.r1.ports = 5140
      a1.sources.r1.ipHeader = test_ip_header
      ...

      Then I can get a header named "test_ip_header" in the event, the value is the ip of host which send this event.

      Attachments

        1. FLUME-3133.patch
          20 kB
          Jinjiang Ling

        Activity

          People

            turcsanyip Peter Turcsanyi
            lingjinjiang Jinjiang Ling
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: