<?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: Force the display of a value when the search is empty in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611132#M212503</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241114"&gt;@Rajaion&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;after the last stats and the final table commands, add the following rows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| append [| makeresults | eval ACKED=0 | fields ACKED]
| stats sum(ACKED) AS ACKED&lt;/LI-CODE&gt;&lt;P&gt;I asked to Splunk Ideas to add this feature to panels and it is in evaluation for a future prospect, if you think that it's a good idea, vote for it at&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/EID-I-572" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-572&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 10:38:38 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-08-29T10:38:38Z</dc:date>
    <item>
      <title>How to force the display of a value when the search is empty?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611129#M212502</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;I have a problem with a search that does not return a result. For the purposes of a dashboard, I need one of my searches, when it does not return a result, to display 0.&lt;BR /&gt;I have already succeeded in this modification in some somewhat complex searches but for a fairly simple search, I cannot do it. Here is the example in question:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rajaion_0-1661769046030.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21234i6947BABDB0EA7BBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rajaion_0-1661769046030.png" alt="Rajaion_0-1661769046030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that when I have a result, it is displayed well, my search runs correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I attempted to use the command "| eval ACKED = if(isnull(ACKED) OR len(ACKED)==0, "0", ACKED)" but search doesn't seem to read it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rajaion_1-1661769123946.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21235i96DF794FB9BD1FE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rajaion_1-1661769123946.png" alt="Rajaion_1-1661769123946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found several topics on similar subjects (with the use of fillnull for example) but without result :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rajaion_2-1661769157029.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21236iF3C619556728CA38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rajaion_2-1661769157029.png" alt="Rajaion_2-1661769157029.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it's not complicated but I can't put my finger on what's the problem, do you have any idea?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Rajaion&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611129#M212502</guid>
      <dc:creator>Rajaion</dc:creator>
      <dc:date>2022-08-29T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Force the display of a value when the search is empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611132#M212503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241114"&gt;@Rajaion&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;after the last stats and the final table commands, add the following rows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| append [| makeresults | eval ACKED=0 | fields ACKED]
| stats sum(ACKED) AS ACKED&lt;/LI-CODE&gt;&lt;P&gt;I asked to Splunk Ideas to add this feature to panels and it is in evaluation for a future prospect, if you think that it's a good idea, vote for it at&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/EID-I-572" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-572&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 10:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611132#M212503</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-29T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Force the display of a value when the search is empty</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611157#M212508</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for, I hadn't thought of this function (which I will dig into to better understand how it works).&lt;/P&gt;&lt;P&gt;Thank you very much for your help, my dashboards are perfect now!&lt;/P&gt;&lt;P&gt;I voted for your idea, indeed, a simple button for this kind of thing should exist.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rajaion&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 14:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-the-display-of-a-value-when-the-search-is-empty/m-p/611157#M212508</guid>
      <dc:creator>Rajaion</dc:creator>
      <dc:date>2022-08-29T14:56:29Z</dc:date>
    </item>
  </channel>
</rss>

