<?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: Why is the Universal Forwarder reporting the wrong IP to Deployment Server? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354464#M64818</link>
    <description>&lt;P&gt;I just left a long comment but when I submitted it, it disappeared, so I going to retype it and leave it as an answer, though it really isn't one. About the search, changed the dedup to hostname&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 20:41:27 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2017-04-28T20:41:27Z</dc:date>
    <item>
      <title>Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354461#M64815</link>
      <description>&lt;P&gt;I have about 6 hosts that are reporting their IP address to my deployment server incorrectly. &lt;BR /&gt;
They are running Universal Forwarder 6.5.2.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2847iA4BBFA594DC93DB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;They all show up as the same 172.22.254.250 address. &lt;/P&gt;

&lt;P&gt;I have checked the local /etc/hosts on the forwarder systems themselves. I have checked ifconfig on those hosts to confirm that they don't have some weird binding. I checked the deployment server /etc/hosts and can ping them all correctly by their actual 10.214.3.X IP address. I also checked the /SPLUNKHOME/etc/system/local/server.conf file. Nada.&lt;/P&gt;

&lt;P&gt;Any ideas? &lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354461#M64815</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2017-04-28T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354462#M64816</link>
      <description>&lt;P&gt;Does this give you the same results, or differerent (IP address-wise)?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log* group=tcpin_connections  NOT eventType=connect_close NOT eventType=connect_done
| table hostname sourceIp arch fwdType os version
| dedup sourceIp
| where NOT sourceHost=sourceIp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354462#M64816</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-04-28T18:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354463#M64817</link>
      <description>&lt;P&gt;Thanks Wrangler&lt;BR /&gt;
Since all 6 of the hosts are reporting as the same wrong IP (See the picture) the dedup command only shows me one now. What I really need help with isn't the search so much as why these forwarders are reporting the wrong address. I edited the question to better reflect that.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354463#M64817</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2017-04-28T18:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354464#M64818</link>
      <description>&lt;P&gt;I just left a long comment but when I submitted it, it disappeared, so I going to retype it and leave it as an answer, though it really isn't one. About the search, changed the dedup to hostname&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 20:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354464#M64818</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-04-28T20:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354465#M64819</link>
      <description>&lt;P&gt;The Splunk forwarder does not store the hosts IP address anywhere in its configs that I am aware of. Take a look at $SPLUNK_HOME/var/log/splunk/splunkd.log and search for &lt;/P&gt;

&lt;P&gt;INFO  HttpPubSubConnection - SSL connection with id: connection&lt;/P&gt;

&lt;P&gt;The whole thing will look something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;04-26-2017 16:04:32.212 INFO  HttpPubSubConnection - SSL connection with id: connection_xxx.xxx.xxx.xxx_8089_hostname_5AEF640C-24F3-4A8A-AD4C-08227E9C4FE5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;where xxx.xxx.xxx.xxx is the IP address the forwarder thinks it is, and hostname is the hostname it thinks it is. How does this IP address compare to what is in your search results?&lt;/P&gt;

&lt;P&gt;Now also look for &lt;CODE&gt;INFO  loader - System info&lt;/CODE&gt;. This is in the same log file right after an entry that says &lt;STRONG&gt;Splunkd starting&lt;/STRONG&gt;. On that line will be the type of system and the hostname Splunk thinks it is.&lt;/P&gt;

&lt;P&gt;A little ways further in the logs you will find a line that says &lt;CODE&gt;INFO  ServerConfig - My GUID is&lt;/CODE&gt; and thee string that follows that is what is used at the end of those &lt;CODE&gt;HttpPubSubConnection - SSL connection&lt;/CODE&gt; entries like the one I showed, above.&lt;/P&gt;

&lt;P&gt;Then you'll see three more lines&lt;/P&gt;

&lt;P&gt;04-26-2017 13:11:55.781 -0700 INFO  ServerConfig - My server name is "hostname".&lt;BR /&gt;
04-26-2017 13:11:55.781 -0700 INFO  ServerConfig - Found no site defined in server.conf&lt;BR /&gt;
04-26-2017 13:11:55.781 -0700 INFO  ServerConfig - My hostname is "hostname".&lt;/P&gt;

&lt;P&gt;Then a bit further look for&lt;/P&gt;

&lt;P&gt;04-26-2017 13:11:55.785 -0700 INFO  ServerConfig - Using REMOTE_SERVER_NAME=hostname&lt;/P&gt;

&lt;P&gt;All of these hostnames should match.&lt;/P&gt;

&lt;P&gt;Take a look also at $SPLUNK_HOME/etc/system/local/server.conf&lt;/P&gt;

&lt;P&gt;There should be a stanza there called [general] which has&lt;BR /&gt;
servername = hostname&lt;/P&gt;

&lt;P&gt;If your finding something out of line in any of these, that'd be a clue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354465#M64819</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2020-09-29T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354466#M64820</link>
      <description>&lt;P&gt;Let's find out if the hostname is consistent on the forwarder's environment. To my knowledge, Splunk does not store the IP address anywhere in its .config files.&lt;/P&gt;

&lt;P&gt;Look first in $SPLUNK_HOME/etc/system/local/server.conf, for the [general] stanza. There may be a line like this:&lt;/P&gt;

&lt;P&gt;serverName = hostname&lt;/P&gt;

&lt;P&gt;You'd expect that to be correct if it is there.&lt;/P&gt;

&lt;P&gt;Next take a look at $SPLUNK_HOME/var/log/splunk/splunkd.log (copy it off somewhere or edit it with &lt;STRONG&gt;vi -R&lt;/STRONG&gt;)&lt;/P&gt;

&lt;P&gt;Searching from the bottom up, find the line &lt;CODE&gt;INFO  loader - Splunkd starting&lt;/CODE&gt;. The next line down will be &lt;CODE&gt;INFO  loader - System info:&lt;/CODE&gt; and the hostname that Splunk thinks it is will be there.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO  ServerConfig - My GUID is 5AEF640C-24F3-4A8A-AD4C-08227E9C4FE5
INFO  ServerConfig - My server name is "hostname".
INFO  ServerConfig - Found no site defined in server.conf
INFO  ServerConfig - My hostname is "hostname".
[snippage]
INFO  ServerConfig - Using REMOTE_SERVER_NAME=hostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All these hostnames should be what you'd expect on that forwarder. If not, that's a clue something is wrong somewhere.&lt;/P&gt;

&lt;P&gt;And then look for lines like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO  HttpPubSubConnection - SSL connection with id: connection_xxx.xxx.xxx.xxx_8089_hostname_5AEF640C-24F3-4A8A-AD4C-08227E9C4FE5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The 5AEF640C-24F3-4A8A-AD4C-08227E9C4FE5 string is the GUID you saw earlier in the logs (it will be different on your system. And again here you should see the hostname you expect, and the IP that you expect.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 21:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354466#M64820</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-04-28T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354467#M64821</link>
      <description>&lt;P&gt;My hunch would be that these forwarders all traverse a NAT interface.&lt;/P&gt;

&lt;P&gt;Can you try a traceroute from the UF to the DS?&lt;/P&gt;

&lt;P&gt;Like wrangler said, I believe the DS is mapping the host to the IP that their phone home was received from, and if the traffic is natted behind a router or firewall (or VIP like jkat suggrsted) then they would all be calling from the same IP&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 14:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354467#M64821</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-29T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354468#M64822</link>
      <description>&lt;P&gt;What is in the forwarders deploymentclient.conf?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; /opt/splunk/bin/splunk btool deploymentclient list --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My hunch is that you've got a load balancer in front of the deployment server and this is the "backend" ip of the VIP that the forwarders are using to commicate with your deployment server.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 16:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354468#M64822</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-29T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Universal Forwarder reporting the wrong IP to Deployment Server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354469#M64823</link>
      <description>&lt;P&gt;Thank you everyone for your feedback. On a whim I deleted the record for one host from the deployment server, and when it phoned home again it had the correct IP. Keep it simple. Odd that it did that in the first place. &lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 15:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-Universal-Forwarder-reporting-the-wrong-IP-to/m-p/354469#M64823</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2017-05-17T15:43:52Z</dc:date>
    </item>
  </channel>
</rss>

