<?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: Chart force line chart to show zero when no results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92266#M23807</link>
    <description>&lt;P&gt;&lt;CODE&gt;host=host1 sourcetype="Perfmon:MSMQ Queue" instance="instance2" OR instance="instance1" | stats count&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;This will show the current count of events, even when it's 0. Is there a specific counter you are looking for?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2013 11:55:55 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-10-10T11:55:55Z</dc:date>
    <item>
      <title>Chart force line chart to show zero when no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92265#M23806</link>
      <description>&lt;P&gt;Hi, I have a realtime chart that monitors the current messages in queue,&lt;/P&gt;

&lt;P&gt;my search string right now is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  host=host1 sourcetype="Perfmon:MSMQ Queue" "instance=instance2" OR "instance=instance1"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sometimes no results are returned due to the queue having 0 messages for over a long period of time, &lt;BR /&gt;
Is it possible on splunk line chart to force it to show 0 value when no results are returned?&lt;/P&gt;

&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 11:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92265#M23806</guid>
      <dc:creator>markgomez00</dc:creator>
      <dc:date>2013-10-10T11:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chart force line chart to show zero when no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92266#M23807</link>
      <description>&lt;P&gt;&lt;CODE&gt;host=host1 sourcetype="Perfmon:MSMQ Queue" instance="instance2" OR instance="instance1" | stats count&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;This will show the current count of events, even when it's 0. Is there a specific counter you are looking for?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 11:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92266#M23807</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-10T11:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart force line chart to show zero when no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92267#M23808</link>
      <description>&lt;P&gt;If I'm understanding you correctly, you'd like a timechart of how many messages you are receiving over time.  If so, try this:&lt;/P&gt;

&lt;P&gt;host=host1 sourcetype="Perfmon:MSMQ Queue" instance="instance2" OR instance="instance1" | timechart count&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 21:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92267#M23808</guid>
      <dc:creator>Simon_Fishel</dc:creator>
      <dc:date>2013-10-10T21:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chart force line chart to show zero when no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92268#M23809</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/118496/fill-in-0-for-timechart-with-missing-values"&gt;http://answers.splunk.com/answers/118496/fill-in-0-for-timechart-with-missing-values&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92268#M23809</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-02-13T18:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart force line chart to show zero when no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92269#M23810</link>
      <description>&lt;P&gt;It really depends on your timechart statement. Assuming that you measure instance1 and instance2 counts you can force both metrics to appear by adding &lt;CODE&gt;| fillnull value=0 instance1 instance2&lt;/CODE&gt; after your timechart statement.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 01:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-force-line-chart-to-show-zero-when-no-results/m-p/92269#M23810</guid>
      <dc:creator>sansay</dc:creator>
      <dc:date>2014-11-26T01:47:05Z</dc:date>
    </item>
  </channel>
</rss>

