<?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 command with span in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745613#M241504</link>
    <description>&lt;P&gt;Thanks. Probably this helps&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 03:33:58 GMT</pubDate>
    <dc:creator>Harikiranjammul</dc:creator>
    <dc:date>2025-05-07T03:33:58Z</dc:date>
    <item>
      <title>Tstats command with span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745607#M241502</link>
      <description>&lt;P&gt;I am running tstats command with span of 2hrs for index and source.&lt;/P&gt;&lt;P&gt;It returns the data for every 2hrs.&lt;/P&gt;&lt;P&gt;But I want to include the results only if it's available for every 2hrs in last 24hrs search.&lt;/P&gt;&lt;P&gt;So basically which is not having continuous data, want to ignore it.&lt;/P&gt;&lt;P&gt;How can I do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 03:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745607#M241502</guid>
      <dc:creator>Harikiranjammul</dc:creator>
      <dc:date>2025-05-07T03:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tstats command with span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745612#M241503</link>
      <description>&lt;P&gt;Is this the sort of thing you are looking for?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count by index source _time span=2h
| stats list(count) as counts dc(_time) as frequency list(_time) as times by index source
| where frequency&amp;gt;=12&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 May 2025 03:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745612#M241503</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-05-07T03:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tstats command with span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745613#M241504</link>
      <description>&lt;P&gt;Thanks. Probably this helps&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 03:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745613#M241504</guid>
      <dc:creator>Harikiranjammul</dc:creator>
      <dc:date>2025-05-07T03:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tstats command with span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745615#M241505</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258992"&gt;@Harikiranjammul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1746588954142.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38883i4B740F582633D83B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1746588954142.png" alt="kiran_panchavat_0-1746588954142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 03:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745615#M241505</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-05-07T03:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tstats command with span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745626#M241506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258992"&gt;@Harikiranjammul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit - I see there have been other posts since I opened this thread but hopeful;ly this helps someone in the future or provides another option!&lt;/P&gt;&lt;P&gt;How about the following?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count 
    WHERE 
    earliest=-24h@h latest=@h index=* AND source=* 
    BY _time span=2h, index, source 
| stats dc(_time) as num_buckets  BY index, source
|where num_buckets = 12&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1746599985013.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38886i7335A5740832D45C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1746599985013.png" alt="livehybrid_0-1746599985013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 06:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tstats-command-with-span/m-p/745626#M241506</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-07T06:41:02Z</dc:date>
    </item>
  </channel>
</rss>

