<?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: How can we use tstats with TERM and PREFIX? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625136#M217307</link>
    <description>&lt;P&gt;Ok, but&amp;nbsp;TERM(4624) does work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 21:06:35 GMT</pubDate>
    <dc:creator>danielbb</dc:creator>
    <dc:date>2022-12-22T21:06:35Z</dc:date>
    <item>
      <title>How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625126#M217304</link>
      <description>&lt;P&gt;I'm trying to run -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats count where index=wineventlog* TERM(EventID=4688) by _time span=1m&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It returns no results but specifying just the term's value seems to work -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats count where index=wineventlog* TERM(4624) by _time span=1m&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A title="TSTATS and PREFIX" href="https://conf.splunk.com/files/2020/slides/PLA1089C.pdf" target="_self"&gt;https://conf.splunk.com/files/2020/slides/PLA1089C.pdf&lt;/A&gt;&amp;nbsp;explains the subject well but my simple query is not working.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 20:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625126#M217304</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2022-12-22T20:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625132#M217306</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command only works with indexed fields, which usually does not include EventID.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 20:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625132#M217306</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-22T20:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625136#M217307</link>
      <description>&lt;P&gt;Ok, but&amp;nbsp;TERM(4624) does work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 21:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625136#M217307</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2022-12-22T21:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625139#M217308</link>
      <description>&lt;P&gt;Which means that term is stored in a tsidx file (is indexed).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 21:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/625139#M217308</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-22T21:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/633914#M220164</link>
      <description>&lt;P&gt;Hi danielbb,&lt;/P&gt;&lt;P&gt;You can try&lt;/P&gt;&lt;P&gt;| tstats count where index=wineventlog* TERM(EventID=*) by _time span=1m&lt;BR /&gt;But in the _raw event, you must have something which corresponds, like&lt;/P&gt;&lt;P&gt;...EventID=4624...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, if you want to use this EventID in the group by, you can try (be carefull The text you provide for the PREFIX() directive must be in lower case)&lt;/P&gt;&lt;P&gt;| tstats count where index=wineventlog* TERM(EventID=*) by PREFIX(eventid=) _time span=1m&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 15:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/633914#M220164</guid>
      <dc:creator>nordinethales</dc:creator>
      <dc:date>2023-03-09T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/636368#M221009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/196884"&gt;@danielbb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's EventCode, not EventID. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=wineventlog* TERM(EventCode=4688) by _time span=1m&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 17:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/636368#M221009</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2023-03-28T17:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use tstats with TERM and PREFIX?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/653454#M225812</link>
      <description>&lt;P&gt;This is perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 18:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-use-tstats-with-TERM-and-PREFIX/m-p/653454#M225812</guid>
      <dc:creator>neelwoolies</dc:creator>
      <dc:date>2023-08-07T18:03:45Z</dc:date>
    </item>
  </channel>
</rss>

