<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Forward syslog maintain the source IP in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566300#M100679</link>
    <description>&lt;P&gt;thanks Rick,&lt;/P&gt;&lt;P&gt;i was suspecting that, but how we say "Hope is last to die".&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 13:03:03 GMT</pubDate>
    <dc:creator>gballanti</dc:creator>
    <dc:date>2021-09-08T13:03:03Z</dc:date>
    <item>
      <title>Forward syslog maintain the source IP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566274#M100675</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i'm struggling with the syslog configuration to forward events and maintain the original source IP.&lt;/P&gt;&lt;P&gt;By rsyslog daemon i collect the data in a file then i need to forward&amp;nbsp; after parsing to a third syslog receiver. On my HF i have the following configuration:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;[monitor:///opt/syslog/udp_514/udp_switch.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = syslog&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;[syslog:forward_syslog]&lt;BR /&gt;server = 172.18.0.32:514&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;[source::/opt/syslog/udp_514/udp_switch.log]&lt;BR /&gt;TRANSFORMS-t1 = to_syslog,to_null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;[to_syslog]&lt;BR /&gt;REGEX = &amp;lt;regex filter&amp;gt;&lt;BR /&gt;DEST_KEY = _SYSLOG_ROUTING&lt;BR /&gt;FORMAT = forward_syslog&lt;/P&gt;&lt;P&gt;[to_null]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = _TCP_ROUTING&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this configuration is working fine, unfortunately the source ip is changed&lt;/P&gt;&lt;P&gt;log in udp_switch.log "Sep 8 11:30:52 10.10.10.5 TEST5,007251000106157"&lt;/P&gt;&lt;P&gt;in third party syslog the ip changes from "10.10.10.5" with the Heavy forwarder one.&lt;/P&gt;&lt;P&gt;Is it possible to maintain the original IP, and how ?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 09:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566274#M100675</guid>
      <dc:creator>gballanti</dc:creator>
      <dc:date>2021-09-08T09:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Forward syslog maintain the source IP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566281#M100677</link>
      <description>&lt;P&gt;Short answer is "no".&lt;/P&gt;&lt;P&gt;Long answer is that if splunks sends data to a third party it is the initiator of the connection (or the source of UDP packets in case of UDP syslog). So the metadata extracted on the destination server from the connection parameters will point back at splunk server. The only possibility to pretend that the packets came from the original source (possible only with UDP) would be to spoof the original source - that's possible with rsyslog using a proper output module, maybe with syslog-ng but definitely not with splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 10:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566281#M100677</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-08T10:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Forward syslog maintain the source IP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566300#M100679</link>
      <description>&lt;P&gt;thanks Rick,&lt;/P&gt;&lt;P&gt;i was suspecting that, but how we say "Hope is last to die".&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 13:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-syslog-maintain-the-source-IP/m-p/566300#M100679</guid>
      <dc:creator>gballanti</dc:creator>
      <dc:date>2021-09-08T13:03:03Z</dc:date>
    </item>
  </channel>
</rss>

