<?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 Splunk 8 - TSTATS WHERE  IN () does not work with CIDR in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-TSTATS-WHERE-IN-does-not-work-with-CIDR/m-p/496302#M138308</link>
    <description>&lt;P&gt;Providing Splunk 8 the following:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| tstats allow_old_summaries=t count from datamodel=Network_Traffic.All_Traffic where (nodename = All_Traffic.Traffic_By_Action.Allowed_Traffic) (All_Traffic.src_zone="INET") (All_Traffic.dest_ip=172.20.17.119) NOT All_Traffic.src_ip IN (40.96.0.0/13, 40.104.0.0/15, 52.96.0.0/14)by All_Traffic.src_ip, All_Traffic.action | sort - count&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It doesn't filter out the subnets we asked to exclude... BUT it works on 7.3&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:10:49 GMT</pubDate>
    <dc:creator>samsonusmc</dc:creator>
    <dc:date>2020-09-30T03:10:49Z</dc:date>
    <item>
      <title>Splunk 8 - TSTATS WHERE  IN () does not work with CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-TSTATS-WHERE-IN-does-not-work-with-CIDR/m-p/496302#M138308</link>
      <description>&lt;P&gt;Providing Splunk 8 the following:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| tstats allow_old_summaries=t count from datamodel=Network_Traffic.All_Traffic where (nodename = All_Traffic.Traffic_By_Action.Allowed_Traffic) (All_Traffic.src_zone="INET") (All_Traffic.dest_ip=172.20.17.119) NOT All_Traffic.src_ip IN (40.96.0.0/13, 40.104.0.0/15, 52.96.0.0/14)by All_Traffic.src_ip, All_Traffic.action | sort - count&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It doesn't filter out the subnets we asked to exclude... BUT it works on 7.3&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-TSTATS-WHERE-IN-does-not-work-with-CIDR/m-p/496302#M138308</guid>
      <dc:creator>samsonusmc</dc:creator>
      <dc:date>2020-09-30T03:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 8 - TSTATS WHERE  IN () does not work with CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-8-TSTATS-WHERE-IN-does-not-work-with-CIDR/m-p/496303#M138309</link>
      <description>&lt;P&gt;Nevermind.. Known issue&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/KnownIssues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/KnownIssues&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;2019-11-11  SPL-179357, SPL-179700  Negated subnet CIDR filter doesn't work in search.&lt;/P&gt;

&lt;P&gt;Workaround:&lt;BR /&gt;
Workaround:&lt;BR /&gt;
limits.conf: [search] use_search_evaluator_v2=false&lt;/P&gt;

&lt;P&gt;Examples searches that don't filter out values: index=_internal (NOT clientip=127.0.0.0/8) | stats count BY clientip&lt;/P&gt;

&lt;P&gt;index=_internal (clientip!=127.0.0.0/8) | stats count BY clientip&lt;/P&gt;

&lt;P&gt;index=_internal | stats count BY clientip | search (clientip!=127.0.0.0/8) | stats sum(count) BY clientip | noop search_optimization=false&lt;/P&gt;

&lt;P&gt;Filtering with | where is OK: index=_internal | where NOT cidrmatch("127.0.0.0/8", clientip) | stats count BY clientip&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-8-TSTATS-WHERE-IN-does-not-work-with-CIDR/m-p/496303#M138309</guid>
      <dc:creator>samsonusmc</dc:creator>
      <dc:date>2020-09-30T03:10:52Z</dc:date>
    </item>
  </channel>
</rss>

