<?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: Could you advise me please, how to exclude IP subnet? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391308#M171081</link>
    <description>&lt;P&gt;cool. please upvote and accept, if it helped you. cheers&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 09:55:40 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2019-05-27T09:55:40Z</dc:date>
    <item>
      <title>Could you advise me please, how to exclude IP subnet?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391304#M171077</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Could you advise me please, how to exclude IP subnet not using each of them NOT 141.8.142.220 etc.&lt;BR /&gt;
As example, my request is:&lt;BR /&gt;
source="test.access.log" host="test123" index="test" sourcetype="access_combined" status=200 NOT 141.8.142.193 NOT 141.8.142.166  NOT 141.8.142.160 NOT 141.8.142.220 root=test1 | top limit=400 useragent clientip&lt;/P&gt;

&lt;P&gt;Are there any variants like 141.8.142.* or 141.8.142.0/255 or anything like this?&lt;/P&gt;

&lt;P&gt;Thank you in adv!&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2019 08:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391304#M171077</guid>
      <dc:creator>smokerman</dc:creator>
      <dc:date>2019-05-25T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Could you advise me please, how to exclude IP subnet?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391305#M171078</link>
      <description>&lt;P&gt;Option1 ) do the base search and do an aggregation/evaluation to remove the IP range. Ensure you have it extracted to a field (say my_ip)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="test.access.log" host="test123" index="test" sourcetype="access_combined" status=200| where NOT cidrmatch("141.8.142.0/255", my_ip)| top limit=400 useragent clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Option 2) Do a wildcard filter to remove them in base search. This is not purely an IP range, but more of a string exclusion&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="test.access.log" host="test123" index="test" sourcetype="access_combined" status=200 root=test1 NOT (141.8.142*) | top limit=400 useragent clientip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 May 2019 17:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391305#M171078</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-25T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Could you advise me please, how to exclude IP subnet?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391306#M171079</link>
      <description>&lt;P&gt;Thank you! That is exactly what I need. It helped to clear the log on the site &lt;A href="https://world-weather.ru"&gt;https://world-weather.ru&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 07:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391306#M171079</guid>
      <dc:creator>smokerman</dc:creator>
      <dc:date>2019-05-27T07:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Could you advise me please, how to exclude IP subnet?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391307#M171080</link>
      <description>&lt;P&gt;Probably safer to do &lt;CODE&gt;141.8.142.*&lt;/CODE&gt; (including the 3rd .) instead of &lt;CODE&gt;141.8.142*&lt;/CODE&gt; (no 3rd .), since the latter also matches &lt;CODE&gt;123.141.8.142&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 09:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391307#M171080</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-05-27T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Could you advise me please, how to exclude IP subnet?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391308#M171081</link>
      <description>&lt;P&gt;cool. please upvote and accept, if it helped you. cheers&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 09:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Could-you-advise-me-please-how-to-exclude-IP-subnet/m-p/391308#M171081</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-27T09:55:40Z</dc:date>
    </item>
  </channel>
</rss>

