<?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: Differentiate between public IP and private IP? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143752#M39953</link>
    <description>&lt;P&gt;I am not sure if you want to return events with only public or only private IP addresses. &lt;BR /&gt;
How about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;someindex&amp;gt; source=&amp;lt;somesource&amp;gt;  " connected to 10\."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to only get the private ones or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;something&amp;gt;  source=&amp;lt;somesource&amp;gt; "connected to " NOT "connected to 10\." 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to get the public ones.&lt;BR /&gt;
This will only look consider 10.x.x.x as private (not other ranges like 192.168.x.x etc) which might be sufficient for what you want. This should also be quick as it's filtering on the indexer. &lt;/P&gt;</description>
    <pubDate>Fri, 13 Feb 2015 15:52:56 GMT</pubDate>
    <dc:creator>tpflicke</dc:creator>
    <dc:date>2015-02-13T15:52:56Z</dc:date>
    <item>
      <title>Differentiate between public IP and private IP?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143751#M39952</link>
      <description>&lt;P&gt;I have a search that goes such: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;UNIQUESESSIONID connected to&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;What this does is outputs this from the log in the search results:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Feb 12 16:45:35 (browser/host name) (unique session IDs)  RTP: Port (port number) connected to (public IP):(port number)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;There are usually 2-4 lines/events in the log that have this similar "connected to" phrase, but only one of them will have a public IP. Which is the one I want. I actually really need everything from:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;RTP: Port (port number) connected to (private IP):(port number)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But as mentioned, several of those events pop up, and the only difference is 2-3 will have private IPs that is always 10.x.x.x, the other events will have public IPs. Is there something I can put in my search query to have it only pull a private IP from the "connected to" phrase?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143751#M39952</guid>
      <dc:creator>ferza</dc:creator>
      <dc:date>2015-02-13T14:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between public IP and private IP?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143752#M39953</link>
      <description>&lt;P&gt;I am not sure if you want to return events with only public or only private IP addresses. &lt;BR /&gt;
How about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;someindex&amp;gt; source=&amp;lt;somesource&amp;gt;  " connected to 10\."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to only get the private ones or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;something&amp;gt;  source=&amp;lt;somesource&amp;gt; "connected to " NOT "connected to 10\." 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to get the public ones.&lt;BR /&gt;
This will only look consider 10.x.x.x as private (not other ranges like 192.168.x.x etc) which might be sufficient for what you want. This should also be quick as it's filtering on the indexer. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143752#M39953</guid>
      <dc:creator>tpflicke</dc:creator>
      <dc:date>2015-02-13T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between public IP and private IP?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143753#M39954</link>
      <description>&lt;P&gt;That worked perfectly! Thank you! And yeah I just wanted the public IPs. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Differentiate-between-public-IP-and-private-IP/m-p/143753#M39954</guid>
      <dc:creator>ferza</dc:creator>
      <dc:date>2015-02-13T15:58:12Z</dc:date>
    </item>
  </channel>
</rss>

