<?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: How to configure HTTP Event collector to log client/source IP? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/712641#M117705</link>
    <description>&lt;P&gt;I have been receiving HTTP Events from an invalid token, and want to trace them back to the source.&lt;/P&gt;&lt;P&gt;However, the HEC is behind an NGINX load-balancer, so I need to configure the HEC to use &lt;FONT face="courier new,courier"&gt;proxied_ip&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to find the original IP.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;connection_host = [ip|dns|proxied_ip|none]
* "proxied_ip" checks whether an X-Forwarded-For header was sent
  (presumably by a proxy server) and if so, sets the host to that value.
  Otherwise, the IP address of the system sending the data is used.
* No default.&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I would also like to apply it to every token, as all HEC ingest goes through the LB.&lt;/P&gt;&lt;P&gt;However, it looks like this option is&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt; available at a per-token level.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#:~:text=on%20this%20setting.-,HTTP%20Event%20Collector%20(HEC)%20%2D%20Local%20stanza%20for%20each%20token,-%5Bhttp%3A//name%5D%0A%0Atoken" target="_blank" rel="noopener"&gt;HTTP Event Collector (HEC) - Local stanza for each token | inputs.conf&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Nothing changed when I set it under [http]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Seems like this was implemented incorrectly...&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 20:46:53 GMT</pubDate>
    <dc:creator>Akeydel</dc:creator>
    <dc:date>2025-02-26T20:46:53Z</dc:date>
    <item>
      <title>How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273311#M52449</link>
      <description>&lt;P&gt;My team has a growing interest in looking at geo location as a function of client IP address.  I've installed a plugin to help with this, but I was a bit stunned to realize that none of my HEC records have the client's IP address (or the source IP) in them.&lt;/P&gt;

&lt;P&gt;Is there a way to configure Splunk so that it records the client IP in the record metadata?  I would like the server to obtain this information from the HTTP connection rather than have the clients report this information voluntarily since most of my clients won't know their actual WAN IP address (they're behind firewalls).&lt;/P&gt;

&lt;P&gt;I see that my HEC records have "splunk_server" in them which is kinda' funny since (it seems to me) that Splunkers would be far more interested in the ORIGIN of the record rather than DESTINATION of the record.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273311#M52449</guid>
      <dc:creator>mbintz</dc:creator>
      <dc:date>2016-02-09T00:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273312#M52450</link>
      <description>&lt;P&gt;Hi @mbintz&lt;/P&gt;

&lt;P&gt;Great to hear you are using HEC. By default the host will be the host set to the server host. To change this you can set the &lt;CODE&gt;connection_host&lt;/CODE&gt; setting in &lt;CODE&gt;etc\apps\splunk_httpinput\inputs.conf&lt;/CODE&gt;. It will allow you to select to use the client IP. You can set this either globally at the &lt;CODE&gt;[http]&lt;/CODE&gt; stanza level or for each individual token within the token stanza.&lt;/P&gt;

&lt;P&gt;Here is the setting from inputs.conf.spec&lt;/P&gt;

&lt;P&gt;connection_host = [ip|dns|none]&lt;BR /&gt;
* Specify the host if an event doesn't have host set.&lt;BR /&gt;
* "ip" sets the host to the IP address of the system sending the data. &lt;BR /&gt;
* "dns" sets the host to the reverse DNS entry for IP address of the system sending the data.&lt;BR /&gt;
* "none" leaves the host as specified in the HTTP header.&lt;/P&gt;

&lt;P&gt;The default is none.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273312#M52450</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-02-09T00:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273313#M52451</link>
      <description>&lt;P&gt;The per-token settings sounds perfect. It'd be great if that were settable in the GUI.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 15:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273313#M52451</guid>
      <dc:creator>mbintz</dc:creator>
      <dc:date>2016-02-09T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273314#M52452</link>
      <description>&lt;P&gt;Good suggestion, I will file it.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/273314#M52452</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-02-09T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/628548#M107874</link>
      <description>&lt;P&gt;Was this feature added onto the UI?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 21:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/628548#M107874</guid>
      <dc:creator>catalina4</dc:creator>
      <dc:date>2023-01-26T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure HTTP Event collector to log client/source IP?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/712641#M117705</link>
      <description>&lt;P&gt;I have been receiving HTTP Events from an invalid token, and want to trace them back to the source.&lt;/P&gt;&lt;P&gt;However, the HEC is behind an NGINX load-balancer, so I need to configure the HEC to use &lt;FONT face="courier new,courier"&gt;proxied_ip&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to find the original IP.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;connection_host = [ip|dns|proxied_ip|none]
* "proxied_ip" checks whether an X-Forwarded-For header was sent
  (presumably by a proxy server) and if so, sets the host to that value.
  Otherwise, the IP address of the system sending the data is used.
* No default.&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I would also like to apply it to every token, as all HEC ingest goes through the LB.&lt;/P&gt;&lt;P&gt;However, it looks like this option is&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt; available at a per-token level.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#:~:text=on%20this%20setting.-,HTTP%20Event%20Collector%20(HEC)%20%2D%20Local%20stanza%20for%20each%20token,-%5Bhttp%3A//name%5D%0A%0Atoken" target="_blank" rel="noopener"&gt;HTTP Event Collector (HEC) - Local stanza for each token | inputs.conf&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Nothing changed when I set it under [http]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Seems like this was implemented incorrectly...&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 20:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-HTTP-Event-collector-to-log-client-source-IP/m-p/712641#M117705</guid>
      <dc:creator>Akeydel</dc:creator>
      <dc:date>2025-02-26T20:46:53Z</dc:date>
    </item>
  </channel>
</rss>

