<?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: tstats command help required for CIDR in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325606#M97091</link>
    <description>&lt;P&gt;Actually, natural CIDR filters work in &lt;CODE&gt;tstats&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count FROM datamodel=Network_Traffic WHERE index=* AND All_Traffic.src="10.0.0.0/8"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* AND host="10.0.0.0/8"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This has been in Splunk for a long time, but maybe not always.  It works in all versions of 7.*&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 17:39:08 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-25T17:39:08Z</dc:date>
    <item>
      <title>tstats command help required for CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325603#M97088</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;I am writing a query using tstats command need to use the CIDR values . Below is the example.&lt;/P&gt;

&lt;P&gt;| tstats &lt;CODE&gt;summariesonly&lt;/CODE&gt; count from datamodel=Web where (nodename = Web.Proxy)  by Web.src  in this query i need to place a filter with private IP range (src should be private IP).&lt;/P&gt;

&lt;P&gt;src="10.0.0.0/8" OR src=192.168.0.0/16 OR src=172.16.0.0/12&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325603#M97088</guid>
      <dc:creator>sumitkathpal</dc:creator>
      <dc:date>2017-07-20T14:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: tstats command help required for CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325604#M97089</link>
      <description>&lt;P&gt;Try ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly count from datamodel=Web where (nodename = Web.Proxy) by Web.src 
| where cidrmatch("10.0.0.0/8",Web.src) OR cidrmatch("192.168.0.0/16",Web.src) OR cidrmatch("172.16.0.0/12",,Web.src)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 01:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325604#M97089</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-21T01:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: tstats command help required for CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325605#M97090</link>
      <description>&lt;P&gt;@sumitkathpal - did this answer give you what you needed?  If so, then please accept the answer.  If not, please let us know what worked, or what the current issue is.  Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325605#M97090</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-06T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: tstats command help required for CIDR</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325606#M97091</link>
      <description>&lt;P&gt;Actually, natural CIDR filters work in &lt;CODE&gt;tstats&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count FROM datamodel=Network_Traffic WHERE index=* AND All_Traffic.src="10.0.0.0/8"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* AND host="10.0.0.0/8"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This has been in Splunk for a long time, but maybe not always.  It works in all versions of 7.*&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-command-help-required-for-CIDR/m-p/325606#M97091</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-25T17:39:08Z</dc:date>
    </item>
  </channel>
</rss>

