<?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 get a single value visualization to display &amp;quot;0&amp;quot; instead of &amp;quot;N/A&amp;quot; in splunk dashboard when there is no matching event? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356226#M39466</link>
    <description>&lt;P&gt;What are you trying to do here.  This search seems all out of whack.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Apr 2017 00:47:04 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-04-30T00:47:04Z</dc:date>
    <item>
      <title>How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356222#M39462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?&lt;/P&gt;

&lt;P&gt;index=main  source="blr-trend" | stats count values(COMP_NAME) AS Computer_NAME,values(DOMAIN) AS Domain, values(MAC) AS MAC, values(ROOTKIT) AS RootKit, values(LOGON_USER) AS Logon_User by ENGINE |reverse| streamstats current=t count AS SERIAL | where SERIAL &amp;gt; 1 |reverse| fields - SERIAL | stats sum(count) AS total&lt;/P&gt;

&lt;P&gt;For this query i m getting N/A, but need 0 is results are N/A&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Vijay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356222#M39462</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2020-09-29T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356223#M39463</link>
      <description>&lt;P&gt;Add this to the end of your search:&lt;/P&gt;

&lt;P&gt;| eval total=if(isnull(total),0,total)&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 22:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356223#M39463</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-29T22:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356224#M39464</link>
      <description>&lt;P&gt;No luck, it is not displaying "0"&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 22:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356224#M39464</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2017-04-29T22:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356225#M39465</link>
      <description>&lt;P&gt;What visualization are you using?  Single value?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 00:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356225#M39465</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-30T00:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356226#M39466</link>
      <description>&lt;P&gt;What are you trying to do here.  This search seems all out of whack.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 00:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356226#M39466</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-30T00:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356227#M39467</link>
      <description>&lt;P&gt;I updated my answer too.  Please try the new version.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 00:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356227#M39467</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-04-30T00:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356228#M39468</link>
      <description>&lt;P&gt;When i add this search | stats count AS total | eval total=if(total=="N/A",0,total) it displays value "0" when there are no results, but her if there is any results, then i m getting wrong count.&lt;/P&gt;

&lt;P&gt;Here i need sum count , but when i need sum then search (| eval total=if(total=="N/A",0,total) )is not working. I have this search(| fillnull value="unknown" governance) as well but still no luck&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 00:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356228#M39468</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2017-04-30T00:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356229#M39469</link>
      <description>&lt;P&gt;I did it by adding this to the end of my search. your_single_val is changed to whatever field populates your singlevalue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | appendpipe [| stats count AS mycount] |
EVAL your_single_val =IF(mycount==0,"NO EVENTS",your_single_val) |
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356229#M39469</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2020-09-29T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356230#M39470</link>
      <description>&lt;P&gt;Thanks for your Query.&lt;BR /&gt;
But i need results of stats &lt;STRONG&gt;sum(count)&lt;/STRONG&gt; AS mycount, but this search is not populating single value&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 18:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356230#M39470</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2017-04-30T18:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356231#M39471</link>
      <description>&lt;P&gt;Maybe your search is not correct. Can you post some sample event data?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 20:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356231#M39471</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2017-04-30T20:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a single value visualization to display "0" instead of "N/A" in splunk dashboard when there is no matching event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356232#M39472</link>
      <description>&lt;P&gt;If use below query&lt;BR /&gt;
index=main  source="blr-trend" | stats count values(COMP_NAME) AS Computer_NAME,values(DOMAIN) AS Domain, values(MAC) AS MAC, values(ROOTKIT) AS RootKit, values(LOGON_USER) AS Logon_User by ENGINE |reverse| streamstats current=t count AS SERIAL | where SERIAL &amp;gt; 1 |reverse| fields - SERIAL  | appendpipe [| stats count AS mycount] |&lt;BR /&gt;
 EVAL your_single_val =IF(mycount==0,"NO EVENTS",your_single_val) |&lt;/P&gt;

&lt;P&gt;I m getting below results. In Visuliazation it shows ENGINE values but  i need count of ENGINE in Visuliazation&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;***ENGINE                 count           RootKit
9.850.1008                 2                      2.97.1148 2.972.1127***
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-single-value-visualization-to-display-quot-0-quot/m-p/356232#M39472</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2020-09-29T13:53:46Z</dc:date>
    </item>
  </channel>
</rss>

