<?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: How to fill the gaps from days with no data in tstats + timechart query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658030#M227292</link>
    <description>&lt;P&gt;Try this.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;timechart &lt;/FONT&gt;command should fill in empty time slots automatically.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats prestats=true count as Total where index="abc"  by _time, Type span=1d
| timechart span=1d cont=true count as Total by Type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 16:54:11 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-09-19T16:54:11Z</dc:date>
    <item>
      <title>How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658009#M227282</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How to fill the gaps from days with no data in tstats + timechart query?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;| tstats count as Total where index="abc"&amp;nbsp; by _time, Type span=1d&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Getting:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neel881_0-1695132638207.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27232iA237BB04A6276090/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neel881_0-1695132638207.png" alt="Neel881_0-1695132638207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Required:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neel881_1-1695132682156.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27233i3120493BA768DE78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neel881_1-1695132682156.png" alt="Neel881_1-1695132682156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 14:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658009#M227282</guid>
      <dc:creator>Neel881</dc:creator>
      <dc:date>2023-09-19T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658018#M227286</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count as Total where index="abc"  by _time, Type span=1d
| timechart span=1d max(Total) as Total by Type
| untable _time Type Total&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658018#M227286</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-19T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658023#M227288</link>
      <description>&lt;P&gt;Same output&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 16:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658023#M227288</guid>
      <dc:creator>Neel881</dc:creator>
      <dc:date>2023-09-19T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658024#M227289</link>
      <description>&lt;P&gt;Try with fillnull&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count as Total where index="abc"  by _time, Type span=1d
| timechart span=1d max(Total) as Total by Type
| fillnull value=0
| untable _time Type Total&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Sep 2023 16:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658024#M227289</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-19T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658030#M227292</link>
      <description>&lt;P&gt;Try this.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;timechart &lt;/FONT&gt;command should fill in empty time slots automatically.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats prestats=true count as Total where index="abc"  by _time, Type span=1d
| timechart span=1d cont=true count as Total by Type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 16:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658030#M227292</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-19T16:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658098#M227324</link>
      <description>&lt;P&gt;Thank you, Now I am getting correct output but Phase data is missing.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count as Total where index="abc"  by _time, Type, Phase span=1d
| timechart span=1d max(Total) as Total by Type
| untable _time Type Total&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Phase field is missing in the final table.&lt;/P&gt;&lt;P&gt;I tried to add 'Phase' field in the untable but showing error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls suggest&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658098#M227324</guid>
      <dc:creator>Neel881</dc:creator>
      <dc:date>2023-09-20T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658099#M227325</link>
      <description>&lt;P&gt;Got the solution. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658099#M227325</guid>
      <dc:creator>Neel881</dc:creator>
      <dc:date>2023-09-20T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gaps from days with no data in tstats + timechart query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658100#M227326</link>
      <description>&lt;P&gt;Fillnull works properly in my case. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-the-gaps-from-days-with-no-data-in-tstats-timechart/m-p/658100#M227326</guid>
      <dc:creator>Neel881</dc:creator>
      <dc:date>2023-09-20T09:22:05Z</dc:date>
    </item>
  </channel>
</rss>

