<?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: Dashboard | Add Value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639731#M221684</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246178"&gt;@splunkuser320&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;said, if you could share your code, it's easier to help you, anyway, supposing your code, you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart count BY host 
| eval 
   failed=if(isnull(failed),0,failed), 
   success=if(isnull(success),0,success)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 06:37:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-04-13T06:37:04Z</dc:date>
    <item>
      <title>How to display the bar with both values even when there are no results for failed?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639714#M221681</link>
      <description>&lt;P&gt;I have a bar graph that shows the status (Success and failed). I want to display the bar with both values even when there are no results for failed.&amp;nbsp; Currently, it shows a bar with only success status.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 16:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639714#M221681</guid>
      <dc:creator>splunkuser320</dc:creator>
      <dc:date>2023-04-13T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard | Add Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639721#M221683</link>
      <description>&lt;P&gt;Please share your current SPL, preferably in a code block &amp;lt;/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 05:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639721#M221683</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-13T05:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard | Add Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639731#M221684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246178"&gt;@splunkuser320&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;said, if you could share your code, it's easier to help you, anyway, supposing your code, you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart count BY host 
| eval 
   failed=if(isnull(failed),0,failed), 
   success=if(isnull(success),0,success)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-bar-with-both-values-even-when-there-are-no/m-p/639731#M221684</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-13T06:37:04Z</dc:date>
    </item>
  </channel>
</rss>

