<?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: timechart return 0 if no results found in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338904#M170304</link>
    <description>&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 14:15:45 GMT</pubDate>
    <dc:creator>amitdaniel</dc:creator>
    <dc:date>2018-04-18T14:15:45Z</dc:date>
    <item>
      <title>timechart return 0 if no results found</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338901#M170301</link>
      <description>&lt;P&gt;Hi . &lt;BR /&gt;
I have a sourcetype = Queue and i'm sending the number of messages waiting in the queue . &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=monitoring sourcetype=Qeueue Account=azbcd ( QueueName="test123") | timechart max(MessageCount) as MessageCount span=30minute
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But if the number of messages = 0 i'm not sending any data to Splunk ( Actually if i'll not find a solution i'll fix my code to send 0 but i want to avoid that ) &lt;/P&gt;

&lt;P&gt;Look at the picture you can see that when the messageCount=0 i have a "hole" in the graph .&lt;BR /&gt;
Is there a way to add if condition or something else that will say if we don't have data put 0 ? &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4773iA4FB138F09024392/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks , &lt;BR /&gt;
Amit&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338901#M170301</guid>
      <dc:creator>amitdaniel</dc:creator>
      <dc:date>2018-04-17T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: timechart return 0 if no results found</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338902#M170302</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;Zero&lt;/CODE&gt; option for "Null Values" in Format tab. Refer doc:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/LineAreaCharts#Configuration_options"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/LineAreaCharts#Configuration_options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338902#M170302</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-17T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: timechart return 0 if no results found</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338903#M170303</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Can you try this please,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=monitoring sourcetype=Qeueue Account=azbcd ( QueueName="test123") | timechart max(MessageCount) as MessageCount span=30minute | fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also you can use make continous command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Makecontinuous" target="test_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Makecontinuous&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338903#M170303</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-18T12:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: timechart return 0 if no results found</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338904#M170304</link>
      <description>&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338904#M170304</guid>
      <dc:creator>amitdaniel</dc:creator>
      <dc:date>2018-04-18T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: timechart return 0 if no results found</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338905#M170305</link>
      <description>&lt;P&gt;The command equivalent for this would be &lt;CODE&gt;| fillull value=0&lt;/CODE&gt; to be added after the timechart command.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-return-0-if-no-results-found/m-p/338905#M170305</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-18T14:36:12Z</dc:date>
    </item>
  </channel>
</rss>

