<?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 is not displaying all expected hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602539#M209741</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in all in single node this works for me on 8.2.6.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count max(_time) as _time where index=xyz earliest=-20d@d latest=@m by host&lt;/LI-CODE&gt;&lt;P&gt;So I propose that you will do a support case to splunk if you haven't found solution for this.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 06:42:36 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-06-21T06:42:36Z</dc:date>
    <item>
      <title>Why is tstats not displaying all expected hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602499#M209722</link>
      <description>&lt;P&gt;We are about to open up a Splunk ticket for this issue, but figured we'd check with the community first.&lt;/P&gt;
&lt;P&gt;Problem: The &lt;EM&gt;tstats&lt;/EM&gt; command is not seeing all of our indexed data and queries would suggest that our Forwarders are not sending data, which isn't true. We've run multiple queries against the index confirming the expected data exists in the index and the fields are indexed. In addition, the hosts show up in the data summary for the index. We are searching within a timeline in which events do exist in the index, so it's not like we are searching for data that never existed.&lt;/P&gt;
&lt;P&gt;We even performed a restart of the Splunk service and noted a significant number of hosts' data in the index have stopped being processed by tstats / tsidx according to the timestamp of the latest event for the hosts. It coincides with the Splunk restart but never starts processing the data again to be visible by tstats, even after several hours. Other hosts data is processed as expected, so we have some hosts with current "lastSeen" times:&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 max(_time) as lastSeen where index=windows_sec earliest=-20d@d latest=@m by host
| convert ctime(lastSeen)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command that results in missing hosts:&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 values(host) by index&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar command that also results in same "missing" hosts --- &lt;U&gt;Fast&lt;/U&gt; Mode:&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;index=* | stats values(host) by index&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Modifying the above command from &lt;U&gt;Fast&lt;/U&gt; to &lt;U&gt;Verbose&lt;/U&gt; mode results in all hosts being displayed as expected.&lt;/P&gt;
&lt;P&gt;Additional Info:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Splunk v8.2.6 - no correlation between different Forwarder versions either.&lt;/LI&gt;
&lt;LI&gt;Splunkd.log has been analyzed line by line pre/post Splunk service restart. No leads there.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Tsidx reduction is (and always has been) disabled for all of our indexes.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;We have seen very similar behavior for other queries where Fast Mode results in missing data but simply changing the mode to Verbose instantly populates all expected data in the results. We even have verified that all fields are identified in the initial "generating" query - no difference in Fast Mode.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This seems like a super basic issue but has completely baffled us for some time and is causing serious heartburn and lack of trust in the data being presented to users. It's almost like a caching issue of some sort but we are grasping at straws now. Any thoughts/ideas would be welcome.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 23:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602499#M209722</guid>
      <dc:creator>BLACKBEARCO</dc:creator>
      <dc:date>2022-06-21T23:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: tstats is not displaying all expected hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602539#M209741</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in all in single node this works for me on 8.2.6.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count max(_time) as _time where index=xyz earliest=-20d@d latest=@m by host&lt;/LI-CODE&gt;&lt;P&gt;So I propose that you will do a support case to splunk if you haven't found solution for this.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 06:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602539#M209741</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-06-21T06:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: tstats is not displaying all expected hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602700#M209783</link>
      <description>&lt;P&gt;Another same kind of issue&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Enterprise/tstats-count-showing-0-on-internal-index/m-p/602694#M12922" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Enterprise/tstats-count-showing-0-on-internal-index/m-p/602694#M12922&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602700#M209783</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-06-21T18:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: tstats is not displaying all expected hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602706#M209784</link>
      <description>&lt;P&gt;Yes, we found a similar post related to the _internal index: &lt;A href="https://community.splunk.com/t5/Splunk-Enterprise/what-makes-tstats-on-internal-go-wrong/m-p/572087" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Enterprise/what-makes-tstats-on-internal-go-wrong/m-p/572087&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, we have never had tsidx reduction enabled, which is why I mentioned that in the additional information of my original post above.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 19:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-tstats-not-displaying-all-expected-hosts/m-p/602706#M209784</guid>
      <dc:creator>BLACKBEARCO</dc:creator>
      <dc:date>2022-06-21T19:23:37Z</dc:date>
    </item>
  </channel>
</rss>

