<?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: My tstats isn't returning results from the other datasets in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/My-tstats-isn-t-returning-results-from-the-other-datasets/m-p/562576#M196039</link>
    <description>&lt;P&gt;Both searches look only at completed datamodel accelerations.&amp;nbsp; Are both data sets accelerated?&amp;nbsp; Are both accelerations completing successfully?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 12:10:48 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-08-09T12:10:48Z</dc:date>
    <item>
      <title>My tstats isn't returning results from the other datasets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/My-tstats-isn-t-returning-results-from-the-other-datasets/m-p/562520#M195634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have several datasets that have the exact same format with only the source of the data differing. I've duplicated my macros from the dev environment to the test but I'm receiving no results for the test macro, despite when I do the tstats search as a datamodel instead I get results.&lt;/P&gt;&lt;P&gt;Here is the dev search:&amp;nbsp;&lt;BR /&gt;tstats summariesonly=true count("dev_metric.exchangeId") as avg_TPS from datamodel=metric by _time, dev_metric.date span=1s&lt;BR /&gt;| search "dev_metric.date"=$date$&lt;BR /&gt;| stats avg(avg_TPS) as averageTps by dev_metric.date&lt;BR /&gt;| eval averageTps=round(averageTps/1000,3)&lt;BR /&gt;| appendpipe [tstats count&lt;BR /&gt;| where count=0]&lt;BR /&gt;| fillnull value=0.000 averageTps&lt;BR /&gt;| fields averageTps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the test search:&lt;BR /&gt;tstats summariesonly=true count("test_metric.exchangeId") as avg_TPS from datamodel=metric by _time, test_metric.date span=1s&lt;BR /&gt;| search "test_metric.date"=$date$&lt;BR /&gt;| stats avg(avg_TPS) as averageTps by metric.date&lt;BR /&gt;| eval averageTps=round(averageTps/1000,3)&lt;BR /&gt;| appendpipe [tstats count&lt;BR /&gt;| where count=0]&lt;BR /&gt;| fillnull value=0.000 averageTps&lt;BR /&gt;| fields averageTps&lt;/P&gt;&lt;P&gt;I've checked the dataset and there are the needed events in there, and I've done a&amp;nbsp;&lt;EM&gt;| datamodel&lt;/EM&gt; search equivalent to tstats that worked fine. What could be the reason I'm receiving no results? And what could be some steps to resolve this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 01:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/My-tstats-isn-t-returning-results-from-the-other-datasets/m-p/562520#M195634</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-08-09T01:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: My tstats isn't returning results from the other datasets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/My-tstats-isn-t-returning-results-from-the-other-datasets/m-p/562576#M196039</link>
      <description>&lt;P&gt;Both searches look only at completed datamodel accelerations.&amp;nbsp; Are both data sets accelerated?&amp;nbsp; Are both accelerations completing successfully?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 12:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/My-tstats-isn-t-returning-results-from-the-other-datasets/m-p/562576#M196039</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-09T12:10:48Z</dc:date>
    </item>
  </channel>
</rss>

