<?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 do I find internal and external ip addresses of splunk universal forwarder? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705798#M238936</link>
    <description>&lt;P&gt;To answer such question one should first define what "internal" and "external" IPs mean here given many possible deployment scenarios including multihomed hosts, NAT-s, intermediate forwarders, proxies and so on. Only then one can start digging into available data.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 11:34:52 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-12-03T11:34:52Z</dc:date>
    <item>
      <title>How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627629#M218084</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I have a use case to query internal and external ip addresses of the host which has UF installed. I am using approach below and hoping for a better solution. Appreciate your help in advance!&lt;/P&gt;
&lt;P&gt;For external IP:&lt;/P&gt;
&lt;P&gt;index=_internal group=tcpin_connections hostname=*&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will provide me sourceIp (external ip)&lt;/P&gt;
&lt;P&gt;For Internal IP:&lt;/P&gt;
&lt;P&gt;index=_internal sourcetype=splunkd_access phonehome | rex command to retrieve internal ip from the string&lt;/P&gt;
&lt;P&gt;Is this the correct approach? I was hoping for a single search to retrieve both IPs. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 18:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627629#M218084</guid>
      <dc:creator>snakhuda</dc:creator>
      <dc:date>2023-01-19T18:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627665#M218095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236367"&gt;@snakhuda&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by external and internal IP address for a Splunk UF.&amp;nbsp; However, if you needed to tie these two events together then something like this should work for you&lt;/P&gt;&lt;PRE&gt;index=_internal (group=tcpin_connections hostname=* sourceIp=* guid=*) OR (sourcetype=splunkd_access phonehome clientip=*)&lt;BR /&gt;| rex field=file "(?:(.+?_)){4}(?&amp;lt;hostname&amp;gt;[^_]+)_(?&amp;lt;guid&amp;gt;.*)"&lt;BR /&gt;| fields guid hostname sourceIp clientip&lt;BR /&gt;| rename sourceIp AS externalIP clientip AS internalIP&lt;BR /&gt;| stats values(*) AS * BY guid&lt;/PRE&gt;&lt;P&gt;Hopefully this helps you find what you're looking for&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 01:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627665#M218095</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-01-20T01:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627686#M218098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236367"&gt;@snakhuda&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;running this search you can have all the information about connected clients, also IP:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=&amp;lt;hostname_deployment_server&amp;gt; /services/deployment/server/clients&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 07:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627686#M218098</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-20T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627849#M218141</link>
      <description>&lt;P&gt;Thank you! This is much better. I was doing running 2 separate queries and then going to use 2 lookup tables to retrieve IPs by hostname. Appreciate your help!&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 23:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627849#M218141</guid>
      <dc:creator>snakhuda</dc:creator>
      <dc:date>2023-01-20T23:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627864#M218147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236367"&gt;@snakhuda&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 06:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/627864#M218147</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-21T06:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705794#M238935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158935"&gt;@yeahnah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately your solution don't provide the truth as the clientIp is NOT equal to the Internal IP, it's unfortunately the public IP, which is not that same as the internal - and what I'd rather call the Private IP.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The reason I know this is because I'm sitting with a bunch of external UF calling home to a DPL outside the network to all UF's, and I need to get the same information - the internal (private) IP, but it's not available.&lt;BR /&gt;&lt;BR /&gt;Till now I only see one way, which is scripted input and/or an existing app that collects this info.&lt;BR /&gt;&lt;BR /&gt;Your search is still good&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; it just don't provide what's requested.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 10:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705794#M238935</guid>
      <dc:creator>BTrust</dc:creator>
      <dc:date>2024-12-03T10:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705798#M238936</link>
      <description>&lt;P&gt;To answer such question one should first define what "internal" and "external" IPs mean here given many possible deployment scenarios including multihomed hosts, NAT-s, intermediate forwarders, proxies and so on. Only then one can start digging into available data.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 11:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705798#M238936</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-03T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705800#M238937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I agree to a certain extend.&lt;/P&gt;&lt;P&gt;The question was here how to "&lt;STRONG&gt;find internal and external ip addresses&lt;/STRONG&gt;", and I think we here can agree on, that it's not the Internal IP that is presented, unless they are sitting on the same network. But as many (most I suppose) are more or less distributed, you'll not be able to get the internal ip this way - right?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 11:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705800#M238937</guid>
      <dc:creator>BTrust</dc:creator>
      <dc:date>2024-12-03T11:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705809#M238938</link>
      <description>&lt;P&gt;The question was very vague and ambiguous.&lt;/P&gt;&lt;P&gt;Let's consider a situation where you have a server hosting two interfaces - 192.168.10.23/24 and 172.17.1.10/24. It receives HEC data on the 172.17.1.10 interface and has a default route via 192.168.10.1. It sends its data to an indexer located at 10.1.2.3/24 but the connection is SNAT-ed so it appears to the indexer as coming from 10.20.1.1.&lt;/P&gt;&lt;P&gt;What is internal and external in this case? It is _not_ straightforward. I could throw in an intermediate forwarder to this mix and possibly some HTTP proxy.&lt;/P&gt;&lt;P&gt;"Internal" and "external" mean different things depending on where you look from.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 12:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705809#M238938</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-03T12:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705812#M238940</link>
      <description>&lt;P&gt;As you say: "&lt;SPAN&gt;&lt;STRONG&gt;is _not_ straightforward&lt;/STRONG&gt;", and I agree, why I think the "solution" here is vague, and ought to be refined&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 12:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/705812#M238940</guid>
      <dc:creator>BTrust</dc:creator>
      <dc:date>2024-12-03T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754054#M242818</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236367"&gt;@snakhuda&lt;/a&gt;&amp;nbsp;We built this for the external public IP portion if you need it still:&lt;BR /&gt;&lt;A href="https://zuykn.io/apps/splunk" target="_blank" rel="noopener"&gt;https://zuykn.io/apps/splunk&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/zuykn/TA-get_public_ip" target="_blank" rel="noopener"&gt;https://github.com/zuykn/TA-get_public_ip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Get Public IP Add-on&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;━━━━━━━━━━━&lt;/P&gt;&lt;P&gt;A lightweight, cross-platform add-on that collects your Splunk Forwarder’s external public IPv4 address using native system commands only — implemented in Windows Batch (.bat) and POSIX sh (Linux / Unix / macOS).&lt;/P&gt;&lt;P&gt;━━━━━━━━━━━&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":gear:"&gt;⚙️&lt;/span&gt;Highlights&lt;BR /&gt;• HTTPS or DNS lookup with intelligent fallback&lt;BR /&gt;• No dependencies — built-in system tools only&lt;BR /&gt;• Auto-selects commands:&lt;BR /&gt;　↳ Windows → curl, certutil, bitsadmin, nslookup&lt;BR /&gt;　↳ Linux / macOS → curl, wget, dig, nslookup&lt;BR /&gt;• Works with any IPv4-returning site — checkip.amazonaws.com, ipinfo.io/ip, icanhazip.com, etc.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="00_get_public_ip_table.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40495iFD90F331C69F6599/image-size/medium?v=v2&amp;amp;px=400" role="button" title="00_get_public_ip_table.png" alt="00_get_public_ip_table.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01_get_public_ip_geostats.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40496i3F0ACF297CC04B88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="01_get_public_ip_geostats.png" alt="01_get_public_ip_geostats.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02_get_public_ip_batch.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40498i4DA493DEB62ED79A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="02_get_public_ip_batch.png" alt="02_get_public_ip_batch.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03_get_public_ip_shell.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40497i1E618D286ECB5A75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="03_get_public_ip_shell.png" alt="03_get_public_ip_shell.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions!&lt;BR /&gt;- Seth&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 17:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754054#M242818</guid>
      <dc:creator>seth_a_zuykn-io</dc:creator>
      <dc:date>2025-10-07T17:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754058#M242819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/313467"&gt;@seth_a_zuykn-io&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks a lot, this was indeed an interesting read and useful input, most appreciated!&lt;/P&gt;&lt;P&gt;/Bjarbe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 20:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754058#M242819</guid>
      <dc:creator>BTrust</dc:creator>
      <dc:date>2025-10-07T20:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754307#M242849</link>
      <description>&lt;P&gt;No prob! We just updated it to v1.1.0 to support IPv6 too. So you can index ipv4 and ipv6 automatically or choose which one you want.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 17:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/754307#M242849</guid>
      <dc:creator>seth_a_zuykn-io</dc:creator>
      <dc:date>2025-10-14T17:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find internal and external ip addresses of splunk universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/755583#M242949</link>
      <description>&lt;P&gt;FYI, it's on official Splunkbase now:&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/8107" target="_blank"&gt;https://splunkbase.splunk.com/app/8107&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 15:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-internal-and-external-ip-addresses-of-splunk/m-p/755583#M242949</guid>
      <dc:creator>seth_a_zuykn-io</dc:creator>
      <dc:date>2025-11-17T15:30:06Z</dc:date>
    </item>
  </channel>
</rss>

