<?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: Splunk query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612298#M212890</link>
    <description>&lt;P&gt;I am not sure tstats work here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 16:55:38 GMT</pubDate>
    <dc:creator>mahesh27</dc:creator>
    <dc:date>2022-09-07T16:55:38Z</dc:date>
    <item>
      <title>Can these Splunk queries be modified using tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611816#M212704</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have few queries to be modified using tstats:&lt;BR /&gt;I am new to splunk, please let me know whether these queries can be converted into tstats.&lt;BR /&gt;&lt;BR /&gt;Query1:&lt;BR /&gt;index=abc&amp;nbsp; "NEW"&amp;nbsp; "/resource/page"&amp;nbsp; appname=ui OR appname=uz&amp;nbsp; |stats&amp;nbsp; avg(response_time).&lt;/P&gt;
&lt;P&gt;Query2:&lt;BR /&gt;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy&amp;nbsp; &amp;nbsp;"transaction" NOT "user" |stats avg(ResponseTime)&lt;/P&gt;
&lt;P&gt;Query3:&lt;BR /&gt;index=abc&amp;nbsp; iru=/resiurce/page&amp;nbsp;&amp;nbsp;appname=ui NOT 1234 NOT 1991 NOT 2022 "Bank status" |stats count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 19:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611816#M212704</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-08T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611819#M212705</link>
      <description>&lt;P&gt;It's unlikely any of those queries can use tstats.&amp;nbsp; The tstats commands uses indexed fields for its searches, which means the 'appname' field would have to be extracted at index-time.&amp;nbsp; The bigger issue, however, is the searches for string literals ("transaction", for example).&amp;nbsp; Such a search requires the _raw field be in the tsidx files, but it is not.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 00:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611819#M212705</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-03T00:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611830#M212708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;, As u said "&lt;SPAN&gt;The tstats commands uses indexed fields for its searches, which means the 'appname' field would have to be extracted at index-time.&lt;/SPAN&gt;"&amp;nbsp; thats true.&lt;/P&gt;&lt;P&gt;but if u see my&amp;nbsp;&lt;SPAN&gt;Query2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy&amp;nbsp; &amp;nbsp;"transaction" NOT "user" |stats avg(ResponseTime)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for this we have "transaction" and&amp;nbsp;"user" keyword in the raw data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, i tried using tstats here like below:&lt;BR /&gt;&lt;BR /&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i am getting the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but when i tried adding stats&amp;nbsp;avg(ResponseTime) i am not getting results like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;|stats avg(ResponseTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;here just i want to get the average response time from the above query.&lt;/P&gt;&lt;P&gt;please let me know, how can i do that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 16:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611830#M212708</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-03T16:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611840#M212712</link>
      <description>&lt;P&gt;It's good that &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; was able to work with the transaction and user fields.&amp;nbsp; That wasn't clear from the OP.&lt;/P&gt;&lt;P&gt;However, like &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; is a transforming command so the only fields available to later commands are those mentioned in &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&amp;nbsp; Since &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; does not use ResponseTime it's not available to &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 19:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611840#M212712</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-03T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611845#M212716</link>
      <description>&lt;P&gt;Sorry to ask you this question... So in this case we cannot use tstats ????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 02:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611845#M212716</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-04T02:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611850#M212719</link>
      <description>&lt;P&gt;Either don't use &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; or somehow include ResponseTime in the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count avg(ResponseTime) where index=abc  sourcetype=abc  host=ghjy TERM(transaction) NOT TERM(user)  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 13:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/611850#M212719</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-04T13:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612296#M212888</link>
      <description>&lt;P&gt;But this query is not working if we include avg. And the keywords are taken from raw index&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612296#M212888</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-07T16:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612297#M212889</link>
      <description>&lt;P&gt;I&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612297#M212889</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-07T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612298#M212890</link>
      <description>&lt;P&gt;I am not sure tstats work here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612298#M212890</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2022-09-07T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612304#M212891</link>
      <description>&lt;P&gt;Please share the query you are using.&lt;/P&gt;&lt;P&gt;You can use the &lt;FONT face="courier new,courier"&gt;walklex&lt;/FONT&gt; command to see which fields are available to &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| walklex type=term index=abc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 18:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612304#M212891</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-07T18:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612449#M212940</link>
      <description>&lt;P&gt;&lt;SPAN&gt;orginal query:&amp;nbsp;&lt;BR /&gt;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy&amp;nbsp; transaction&amp;nbsp; NOT&amp;nbsp; user |stats avg(ResponseTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample events:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;logevent: 76:2022-09-08 13:07:12,768:RF&amp;nbsp; &amp;nbsp; :ca.alto.serv.transaction::time:&amp;lt;timestamp&amp;gt; (1) 2022-09-08 13:07:12,768 to 4:09:896 6 ms products()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but i need the same query using tstats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i am getting the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but when i tried adding stats&amp;nbsp;avg(ResponseTime) i am not getting results.&lt;BR /&gt;&lt;BR /&gt;i hope this info helps you...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612449#M212940</guid>
      <dc:creator>Vani_26</dc:creator>
      <dc:date>2022-09-08T17:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612455#M212942</link>
      <description>&lt;P&gt;one more point here responsetime is extracted field.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 18:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612455#M212942</guid>
      <dc:creator>Vani_26</dc:creator>
      <dc:date>2022-09-08T18:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612468#M212948</link>
      <description>&lt;P&gt;I was hoping to see the complete query that is failing, not one that works followed by "then I added this and it didn't work".&lt;/P&gt;&lt;P&gt;That &lt;FONT face="courier new,courier"&gt;stats avg(ResponseTime)&lt;/FONT&gt; returned no results is expected because the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command output did not include a ResponseTime field.&amp;nbsp; I explained that in my Saturday reply.&amp;nbsp; It doesn't matter if ResponseTime is extracted or not - after the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command the only fields available are those produced or grouped by &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 19:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612468#M212948</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-08T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612473#M212951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249143"&gt;@mahesh27&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;&lt;SPAN&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i am getting the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but when i tried adding stats&amp;nbsp;avg(ResponseTime) i am not getting results like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;|stats avg(ResponseTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for showing the use of TERM() in tstats. (I have used Splunk for very long but also just beginning to learn tstats.)&lt;/P&gt;&lt;P&gt;The reason why the second search won't work is because your tstats does not output any information about ResponseTime. &amp;nbsp;Besides, tstats performs all kinds of stats including avg. &amp;nbsp;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count avg(ResponseTime) where index=abc  sourcetype=abc  host=ghjy TERM(transaction) NOT TERM(user)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 20:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612473#M212951</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-08T20:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612478#M212955</link>
      <description>&lt;P&gt;This is the complete query:&lt;BR /&gt;&lt;SPAN&gt;orginal query:&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy&amp;nbsp; transaction&amp;nbsp; NOT&amp;nbsp; user |stats avg(ResponseTime)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i want to use using tstats&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|tstats count where&amp;nbsp;index=abc&amp;nbsp; sourcetype=abc&amp;nbsp; host=ghjy TERM(transaction) NOT TERM(user)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;--after the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;&amp;nbsp;command the only fields available are those produced or grouped by&amp;nbsp;&lt;FONT face="courier new,courier"&gt;tstats-- &lt;STRONG&gt;i dont know how to check on this.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/FONT&gt;I think u gave me other command(| walklex type=term index=abc) to see but i could not able to find it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 21:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612478#M212955</guid>
      <dc:creator>Vani_26</dc:creator>
      <dc:date>2022-09-08T21:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612482#M212956</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248147"&gt;@Vani_26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;one more point here responsetime is extracted field.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;ResponsTime (or responsetime as is typed above - which is it?) is the field you need to check with walklex. (Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;for pointing to this command.)&lt;/P&gt;&lt;P&gt;After richgalloway posted this (I didn't see that before my earlier post)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count avg(ResponseTime) where index=abc  sourcetype=abc  host=ghjy TERM(transaction) NOT TERM(user)  &lt;/LI-CODE&gt;&lt;P&gt;you answered&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249143"&gt;@mahesh27&lt;/a&gt;&amp;nbsp;wrote:&lt;/P&gt;&lt;P&gt;But this query is not working if we include avg. And the keywords are taken from raw index&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This statement is inconsistent with the assertion that ResponseTime is extracted &lt;U&gt;at index time&lt;/U&gt;. &amp;nbsp;Note, if ResponseTime is extracted at search time (e.g., transformation, in-line extraction, calculated field, etc.), it won't work with tstats.&lt;/P&gt;&lt;P&gt;Maybe you can clarify what "is not working." (Try avoid extremely vague terms such as "not working".) &amp;nbsp;Is it that richgallaway's above code doesn't return any value even though&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=abc  sourcetype=abc  host=ghjy TERM(transaction) NOT TERM(user)  &lt;/LI-CODE&gt;&lt;P&gt;returns proper values, or is it that avg(ResponseTime) contain no value but count is proper? (The former is quite impossible.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 22:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-these-Splunk-queries-be-modified-using-tstats/m-p/612482#M212956</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-08T22:23:52Z</dc:date>
    </item>
  </channel>
</rss>

