<?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: Need to show a zero on a multi stats graph in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-to-show-a-zero-on-a-multi-stats-graph/m-p/384573#M25220</link>
    <description>&lt;P&gt;Use a "fillnull", assuming these log events are generated even when there is no error.  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index= host= sourcetype= "Error with Initiate Payment" | fillnull value="0"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If there literally are no log events generated you could artificially insert a "0" at the end of the search if there are no results:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats count as "Payment Success" by Date | eval count=if(isnull('count'),"0",'count')&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 23:02:45 GMT</pubDate>
    <dc:creator>marycordova</dc:creator>
    <dc:date>2019-05-22T23:02:45Z</dc:date>
    <item>
      <title>Need to show a zero on a multi stats graph</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-to-show-a-zero-on-a-multi-stats-graph/m-p/384572#M25219</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Im tracking three set of stats on one graph two error counts and one success count. However my team has just fixed the issue behind "Error with Initiate Payment" and my graph is now no longer showing the other results.&lt;/P&gt;

&lt;P&gt;Is there a way to show the null results as a zero as i would like to monitor this still moving forward.&lt;/P&gt;

&lt;P&gt;Below is my query sorry best i can do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; any help will be greatly received.&lt;/P&gt;

&lt;P&gt;index=* host=* sourcetype=* "Error with Initiate Payment"  | convert timeformat="%Y-%m-%d" ctime(_time) AS Date  | stats count AS "Initiate Payment Failures" by Date | join [search index=* host=* sourcetype=* "Error with Submit Payment" | convert timeformat="%Y-%m-%d" ctime(_time) AS Date | stats count as "Submit Payment Failures" by Date] | join [search index=* host=** sourcetype=** "Submit Payment Response {"result":true,"serviceResponse":{"statusCode":200}}" | convert timeformat="%Y-%m-%d" ctime(_time) AS Date | stats count as "Payment Success" by Date] &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-to-show-a-zero-on-a-multi-stats-graph/m-p/384572#M25219</guid>
      <dc:creator>bigjoe1</dc:creator>
      <dc:date>2020-09-30T00:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to show a zero on a multi stats graph</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-to-show-a-zero-on-a-multi-stats-graph/m-p/384573#M25220</link>
      <description>&lt;P&gt;Use a "fillnull", assuming these log events are generated even when there is no error.  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index= host= sourcetype= "Error with Initiate Payment" | fillnull value="0"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If there literally are no log events generated you could artificially insert a "0" at the end of the search if there are no results:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats count as "Payment Success" by Date | eval count=if(isnull('count'),"0",'count')&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 23:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-to-show-a-zero-on-a-multi-stats-graph/m-p/384573#M25220</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-05-22T23:02:45Z</dc:date>
    </item>
  </channel>
</rss>

