<?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 How to write one more tstats query in tsatas where clause? in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508024#M89</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am looking for writing tstats sub search in query in &lt;STRONG&gt;tstats where claus.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried the below way but my query giving No Result. I want write in sub search with tstats from two indexes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| tstats latest(_time),values(&lt;/SPAN&gt;&lt;SPAN&gt;relational_correlationId),&lt;/SPAN&gt;&lt;SPAN&gt;values(tracePoint),values(&lt;/SPAN&gt;&lt;SPAN&gt;timestamp),values(businessKey)&lt;/SPAN&gt;&lt;SPAN&gt;,values(businessValue) &amp;nbsp;where [ &amp;nbsp;tstats latest(_time) as _time ,values(relational_&lt;/SPAN&gt;&lt;SPAN&gt;correlationId) as relational_correlationId ,values(tracePoint) as tracePoint,values(timestamp) as timestamp,values(content.&lt;/SPAN&gt;&lt;SPAN&gt;businessFields{}.key) as businessKey,values(content.&lt;/SPAN&gt;&lt;SPAN&gt;businessFields{}.value) as businessValue where index="mulesoft_index" earliest=-10m@m latest=now() by environment,businessGroup,&lt;/SPAN&gt;&lt;SPAN&gt;appName,interfaceName,&lt;/SPAN&gt;&lt;SPAN&gt;correlationId]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reagards,&lt;/P&gt;&lt;P&gt;Manikanth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 10:19:49 GMT</pubDate>
    <dc:creator>manikanthkoti</dc:creator>
    <dc:date>2020-07-08T10:19:49Z</dc:date>
    <item>
      <title>How to write one more tstats query in tsatas where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508024#M89</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am looking for writing tstats sub search in query in &lt;STRONG&gt;tstats where claus.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried the below way but my query giving No Result. I want write in sub search with tstats from two indexes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| tstats latest(_time),values(&lt;/SPAN&gt;&lt;SPAN&gt;relational_correlationId),&lt;/SPAN&gt;&lt;SPAN&gt;values(tracePoint),values(&lt;/SPAN&gt;&lt;SPAN&gt;timestamp),values(businessKey)&lt;/SPAN&gt;&lt;SPAN&gt;,values(businessValue) &amp;nbsp;where [ &amp;nbsp;tstats latest(_time) as _time ,values(relational_&lt;/SPAN&gt;&lt;SPAN&gt;correlationId) as relational_correlationId ,values(tracePoint) as tracePoint,values(timestamp) as timestamp,values(content.&lt;/SPAN&gt;&lt;SPAN&gt;businessFields{}.key) as businessKey,values(content.&lt;/SPAN&gt;&lt;SPAN&gt;businessFields{}.value) as businessValue where index="mulesoft_index" earliest=-10m@m latest=now() by environment,businessGroup,&lt;/SPAN&gt;&lt;SPAN&gt;appName,interfaceName,&lt;/SPAN&gt;&lt;SPAN&gt;correlationId]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reagards,&lt;/P&gt;&lt;P&gt;Manikanth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 10:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508024#M89</guid>
      <dc:creator>manikanthkoti</dc:creator>
      <dc:date>2020-07-08T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write one more tstats query in tsatas where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508111#M90</link>
      <description>&lt;P&gt;Recall that the results of a subsearch become part of the main search so those results must make sense in the context of the main search.&amp;nbsp; To check that, run the subsearch by itself with the format command so you can see what gets returned to the main search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as _time ,values(relational_correlationId) as relational_correlationId ,values(tracePoint) as tracePoint,values(timestamp) as timestamp,values(content.businessFields{}.key) as businessKey,values(content.businessFields{}.value) as businessValue where index="mulesoft_index" earliest=-10m@m latest=now() by environment,businessGroup,appName,interfaceName,correlationId | format&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508111#M90</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write one more tstats query in tsatas where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508235#M91</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957" target="_self"&gt;richgalloway&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks for your response. I have tried the way you suggested but it is not working. Actually In sub search I want to get the data from other summary index.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 06:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508235#M91</guid>
      <dc:creator>manikanthkoti</dc:creator>
      <dc:date>2020-07-09T06:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write one more tstats query in tsatas where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508285#M92</link>
      <description>What about it is not working? What results do you get vs what you expect?&lt;BR /&gt;If you want the subsearch to get data from a summary index then modify the subsearch to get the data from the SI.</description>
      <pubDate>Thu, 09 Jul 2020 12:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-write-one-more-tstats-query-in-tsatas-where-clause/m-p/508285#M92</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-09T12:22:14Z</dc:date>
    </item>
  </channel>
</rss>

