<?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: For single value panel need to replace 'no results found' message with custom data in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565544#M9846</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/54377"&gt;@kirrusk&lt;/a&gt;Did you get a zero at the end of your query? Or are you still trying to do that?&lt;BR /&gt;If you do have a "0" at the end of your query, then it is as easy as modifying your last line to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| appendpipe 
    [ stats count 
    | where count=0 
    | eval count="No data, Please check later"]&lt;/LI-CODE&gt;&lt;P&gt;I tested this and it will display in a single value viz. So you won't need any of the custom xml, because the logic is in the query itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 18:33:37 GMT</pubDate>
    <dc:creator>efavreau</dc:creator>
    <dc:date>2021-09-01T18:33:37Z</dc:date>
    <item>
      <title>For single value panel need to replace 'no results found' message with custom data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565521#M9844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried the below logic, to replace the "no results found "message with a custom message.&lt;BR /&gt;But after adding append count the,&amp;nbsp; at end of the query.&lt;BR /&gt;logic is not working as expected. Can anyone please help?&lt;/P&gt;&lt;PRE&gt;base search | fields version, time&amp;nbsp; | appendpipe [stats count | where count=0]&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;done&amp;gt;
    &amp;lt;condition match=" 'job.resultCount' == 0"&amp;gt;
        &amp;lt;set token="show_html"&amp;gt;true&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;
        &amp;lt;unset token="show_html"/&amp;gt;
    &amp;lt;/condition&amp;gt;
&amp;lt;done&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;chart rejects="$show_html$"&amp;gt;
   ...
&amp;lt;/chart&amp;gt;
&amp;lt;html depends="$show_token$"&amp;gt;
     &amp;lt;div style="font-weight:bold;font-size:150%;text-align:center;color:red"&amp;gt;
          No data, Please check later
     &amp;lt;/div&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565521#M9844</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2021-09-01T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: For single value panel need to replace 'no results found' message with custom data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565544#M9846</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/54377"&gt;@kirrusk&lt;/a&gt;Did you get a zero at the end of your query? Or are you still trying to do that?&lt;BR /&gt;If you do have a "0" at the end of your query, then it is as easy as modifying your last line to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| appendpipe 
    [ stats count 
    | where count=0 
    | eval count="No data, Please check later"]&lt;/LI-CODE&gt;&lt;P&gt;I tested this and it will display in a single value viz. So you won't need any of the custom xml, because the logic is in the query itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 18:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565544#M9846</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2021-09-01T18:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: For single value panel need to replace 'no results found' message with custom data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565569#M9847</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735"&gt;@efavreau&lt;/a&gt;&amp;nbsp;Thank you, but it is not exactly what I'm looking for. I'm using the hyper link. So if there is no data also hyperlink is still enabled on custom message, which should not.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 03:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/For-single-value-panel-need-to-replace-no-results-found-message/m-p/565569#M9847</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2021-09-02T03:25:21Z</dc:date>
    </item>
  </channel>
</rss>

