<?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 find IP addresses events are coming from to verify if multiple VMs are under a single hostname? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187464#M53998</link>
    <description>&lt;P&gt;This is interesting. The hostname I'm suspicious of doesn't even appear in the resultant table. Why would that be?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2014 20:26:27 GMT</pubDate>
    <dc:creator>di2esysadmin</dc:creator>
    <dc:date>2014-08-19T20:26:27Z</dc:date>
    <item>
      <title>How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187461#M53995</link>
      <description>&lt;P&gt;I suspect that multiple VMs (as yet unconfigured in our environment) are getting lumped together in the index under a single hostname ("unconfigured-win2008r2").  I'd like to verify this by finding the IP addresses that these events are coming from.  &lt;/P&gt;

&lt;P&gt;How do I do this?&lt;/P&gt;

&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 18:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187461#M53995</guid>
      <dc:creator>di2esysadmin</dc:creator>
      <dc:date>2014-08-19T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187462#M53996</link>
      <description>&lt;P&gt;You'll need to find the field(s) in your index that contain IP addresses.  One way to do that is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | fields - _* | table *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will list all of the fields available to you (except _raw, _time, etc.) and their values.  Look through the table for meaningful values and then add the fields to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187462#M53996</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-08-19T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187463#M53997</link>
      <description>&lt;P&gt;Assuming that those VMs are hosting forwarder to send the data, they should be sending heartbeat to Splunk Indexer, which contains IP. Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal group="tcpin_connections" | table hostname sourceHost | dedup  hostname sourceHost
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187463#M53997</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-19T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187464#M53998</link>
      <description>&lt;P&gt;This is interesting. The hostname I'm suspicious of doesn't even appear in the resultant table. Why would that be?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187464#M53998</guid>
      <dc:creator>di2esysadmin</dc:creator>
      <dc:date>2014-08-19T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187465#M53999</link>
      <description>&lt;P&gt;I have a search labeled for this reason.&lt;BR /&gt;
Splunk - Multiple machine reporting as same host (runs every 60m  -1h@h - now)&lt;/P&gt;

&lt;P&gt;I found that the RHEL kickstart with our splunkforwarder rpm always puts localhost in server.conf and inputs.conf so I have to go change it in etc/system/local. Alternatively, we get systems folks who duplicate servers (virtual), change server name, and dont tell me. This search handles all of the above. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
index=&lt;EM&gt;internal sourcetype=splunkd hostname="*" | rex "(?i)hostname=(?P&lt;AGENTNAME&gt;[\w-&lt;/AGENTNAME&gt;&lt;/EM&gt;]+)" | stats count values(sourceIp) dc(sourceIp) as dup dc(guid) as dup_guid by agentname| where (agentname="localhost" OR dup&amp;gt;1 OR dup_guid&amp;gt;1) | search NOT (agentname="server1" OR agentname="server2")&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;server1 and server2 are known servers that have 2 or more IPs. This allows me to ignore servers with these names. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187465#M53999</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2020-09-28T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187466#M54000</link>
      <description>&lt;P&gt;For these apparently windows hosts, my query didn't include any IP addresses.    Actually I tried this with a handful of centos hosts too.  No IP addresses either.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187466#M54000</guid>
      <dc:creator>di2esysadmin</dc:creator>
      <dc:date>2014-08-19T20:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187467#M54001</link>
      <description>&lt;P&gt;I believe the hostname may not be available in all events (sometime just the IP is logged). Try these and see if you can get host name in any of the event.&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;internal group=tcp* OR group=per&lt;/EM&gt;* OR group=ds_* | table *host* *Host* *ip* *Ip* *IP*&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187467#M54001</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-19T20:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187468#M54002</link>
      <description>&lt;P&gt;Did anyone get this regex to work?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187468#M54002</guid>
      <dc:creator>ppeterson</dc:creator>
      <dc:date>2016-10-13T13:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to find IP addresses events are coming from to verify if multiple VMs are under a single hostname?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187469#M54003</link>
      <description>&lt;P&gt;The above search I posted resolved my issue. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-IP-addresses-events-are-coming-from-to-verify-if/m-p/187469#M54003</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2016-10-13T13:43:13Z</dc:date>
    </item>
  </channel>
</rss>

