<?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 How to identify external IP addresses in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494968#M137984</link>
    <description>&lt;P&gt;I am attempting to identify external IPs that are accessing our servers more than a given number of times each day in order to identify external users that are pulling data from our site using automated processes.&lt;/P&gt;

&lt;P&gt;The plan is to identify the IPs, then associate those IPs with various services that are using the data in order to create points of contact. If anyone could help, I would really appreciate it.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 14:44:04 GMT</pubDate>
    <dc:creator>brandonmurphy</dc:creator>
    <dc:date>2019-10-10T14:44:04Z</dc:date>
    <item>
      <title>How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494968#M137984</link>
      <description>&lt;P&gt;I am attempting to identify external IPs that are accessing our servers more than a given number of times each day in order to identify external users that are pulling data from our site using automated processes.&lt;/P&gt;

&lt;P&gt;The plan is to identify the IPs, then associate those IPs with various services that are using the data in order to create points of contact. If anyone could help, I would really appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494968#M137984</guid>
      <dc:creator>brandonmurphy</dc:creator>
      <dc:date>2019-10-10T14:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494969#M137985</link>
      <description>&lt;P&gt;Do you have an example of the logs?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494969#M137985</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2019-10-10T15:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494970#M137986</link>
      <description>&lt;P&gt;Not exactly. I can't post from the system it is on. I was hoping for something fairly general that I can work with to meet my needs.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494970#M137986</guid>
      <dc:creator>brandonmurphy</dc:creator>
      <dc:date>2019-10-10T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494971#M137987</link>
      <description>&lt;P&gt;Do you have a CIDR for internal addresses to ignore? &lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494971#M137987</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-10-10T15:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494972#M137988</link>
      <description>&lt;P&gt;Not that I am aware of&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494972#M137988</guid>
      <dc:creator>brandonmurphy</dc:creator>
      <dc:date>2019-10-10T15:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494973#M137989</link>
      <description>&lt;P&gt;Hi Brandon, with the limited information at hand this is how I would do it:&lt;BR /&gt;
&lt;CODE&gt;... search that gives you the ip as **dst** field | lookup dnslookup clientip as dst OUTPUT clienthost as dst_resolved&lt;/CODE&gt;&lt;BR /&gt;
Try it with: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval dst="8.8.8.8" | lookup dnslookup clientip as dst OUTPUT clienthost as dst_resolved
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you have the host resolution with the domain name. Filter the results by adding &lt;CODE&gt;| where NOT dst_resolved like "%.yourdomain"&lt;/CODE&gt;This will give you all events with an external domain.&lt;/P&gt;

&lt;P&gt;If you have multiple internal domains that change on a daily basis, I suggest another method along name resolution: External DNS servers like 8.8.8.8 will never resolve your internal IPs. Write a small python custom search command, that will try to resolve the IP externally. If it fails, it is an internal address. There are some code snippets around, if you want to go that way.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494973#M137989</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-10-10T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494974#M137990</link>
      <description>&lt;P&gt;If you can't identify internal-vs-external addresses, it's going to be hard to help you out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494974#M137990</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-10-10T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494975#M137991</link>
      <description>&lt;P&gt;You can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="YouShouldAlwaysSpecifyAnIndex" AND sourcetype="AndSourcetypeToo"
| rename COMMENT AS "We are assuming that the 'src_ip' has the source IP address value and that 'MyCompany.com' is your domain."
| lookup dnslookup clientip AS src_ip OUTPUT clienthost
| eval internal = if(match(clienthost, "(?i)*.MyCompany.com$") OR  match(src_ip, "(192\.168\.)\d{1,3}\.\d{1,3}|(10\.)\d{1,3}\.\d{1,3}\.\d{1,3}|(172\.1[6-9]\.)\d{1,3}\.\d{1,3}|(172\.2[0-9]\.)\d{1,3}\.\d{1,3}|(172\.3[0-1]\.)\d{1,3}\.\d{1,3}"), 1, 0)
| where internal == "1"
| stats count dc(dest) BY src_ip
| where count &amp;gt;= YourThresholdNumberHere
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Oct 2019 21:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/494975#M137991</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-20T21:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify external IP addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/755584#M242950</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207582"&gt;@brandonmurphy&lt;/a&gt;&amp;nbsp;I know this is an old post, but for those looking to index External Public Egree IPs (IPv4 and IPv6) from Splunk UFs or Splunk Enterprise, we built this Get Public IP Add-on:&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:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-external-IP-addresses/m-p/755584#M242950</guid>
      <dc:creator>seth_a_zuykn-io</dc:creator>
      <dc:date>2025-11-17T15:32:10Z</dc:date>
    </item>
  </channel>
</rss>

