<?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: find logs for IP Address in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199396#M187500</link>
    <description>&lt;P&gt;clarification&lt;BR /&gt;
I have to extract proxy logs with the following fields(UrlDestHost,ClientIP,Protocol,rules...)&lt;BR /&gt;
for our partner users in France and Germany.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2014 12:23:03 GMT</pubDate>
    <dc:creator>hyahmadi</dc:creator>
    <dc:date>2014-06-17T12:23:03Z</dc:date>
    <item>
      <title>find logs for IP Address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199393#M187497</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;
I want to search  proxy logs for  2 different area of ip address ?&lt;BR /&gt;
(like from x.x.x.x to y.y.y.y and from x1.x2.x3.x4 to y1.y2.y3.y4)&lt;BR /&gt;
Any help is appreciated&lt;BR /&gt;
thanks &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 11:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199393#M187497</guid>
      <dc:creator>hyahmadi</dc:creator>
      <dc:date>2014-06-17T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: find logs for IP Address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199394#M187498</link>
      <description>&lt;P&gt;The way you have posed the question implies that you are looking for two sets of contiguous IP space.&lt;BR /&gt;
If true you can use an ORed CIDR notation for your search.&lt;BR /&gt;
Example: field=10.0.0.0/8 OR field=172.16.0.0/12 &lt;/P&gt;

&lt;P&gt;Or did I misunderstand the questions?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199394#M187498</guid>
      <dc:creator>alterdego</dc:creator>
      <dc:date>2014-06-17T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: find logs for IP Address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199395#M187499</link>
      <description>&lt;P&gt;I would use the cidrmatch function, assuming an index of "proxy" and an IP address field of "ip_address":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxy | eval isRange1=if(cidrmatch("x.x.x.x/a",ip_address),"true","false") eval isRange2=if(cidrmatch("x1.x2.x3.x4/b",ip_address),"true","false") | search (isRange1=true OR isRange2=true)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where "a" and "b" and the appropriate CIDR masks (use a network calculator to generate them accurately) to limit your IP ranges, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxy | eval isRange1=if(cidrmatch("192.168.1.0/24",ip_address),"true","false") eval isRange2=if(cidrmatch("172.16.0.0/16",ip_address),"true","false") | search (isRange1=true OR isRange2=true)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199395#M187499</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-06-17T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: find logs for IP Address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199396#M187500</link>
      <description>&lt;P&gt;clarification&lt;BR /&gt;
I have to extract proxy logs with the following fields(UrlDestHost,ClientIP,Protocol,rules...)&lt;BR /&gt;
for our partner users in France and Germany.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-logs-for-IP-Address/m-p/199396#M187500</guid>
      <dc:creator>hyahmadi</dc:creator>
      <dc:date>2014-06-17T12:23:03Z</dc:date>
    </item>
  </channel>
</rss>

