<?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 and regex usage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-regex-usage/m-p/85828#M21907</link>
    <description>&lt;P&gt;You can filter using the tstats command.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats avg(size) from ts_namespace where URL="http://certain-type-only.*blah" groupby URL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you generate tsidx files you need to access them using tstats.&lt;/P&gt;

&lt;P&gt;Note, I did at first try using match because the docs claim that the "where" syntax is the same as general search but this does not appear to be true.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2013 18:15:34 GMT</pubDate>
    <dc:creator>okrabbe_splunk</dc:creator>
    <dc:date>2013-04-08T18:15:34Z</dc:date>
    <item>
      <title>tstats and regex usage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-regex-usage/m-p/85827#M21906</link>
      <description>&lt;P&gt;Executed a tscollect with two fields 'URL' and 'download size', how to extract URLs which matches particular regex.&lt;/P&gt;

&lt;P&gt;It's straight forward to filter using regex when processing raw data as ( fields are already defined):&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
sourcetype="access_data" | regex URL="&lt;A href="http://certain-type-only.*blah"&gt;http://certain-type-only.*blah&lt;/A&gt;" | eval ...&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;How to do the same with tstats ? Tried replacing sourcetype section with tstats but it didn't work, is it possible to use regex in where column or any other method?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 11:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-regex-usage/m-p/85827#M21906</guid>
      <dc:creator>sathiyamoorthy</dc:creator>
      <dc:date>2013-04-05T11:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and regex usage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-regex-usage/m-p/85828#M21907</link>
      <description>&lt;P&gt;You can filter using the tstats command.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats avg(size) from ts_namespace where URL="http://certain-type-only.*blah" groupby URL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you generate tsidx files you need to access them using tstats.&lt;/P&gt;

&lt;P&gt;Note, I did at first try using match because the docs claim that the "where" syntax is the same as general search but this does not appear to be true.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2013 18:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-regex-usage/m-p/85828#M21907</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2013-04-08T18:15:34Z</dc:date>
    </item>
  </channel>
</rss>

