<?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 add a Custom message in Dashboard panel in replace of &amp;quot;No results found.&amp;quot; message? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342232#M22256</link>
    <description>&lt;P&gt;@SNaikwade, which version of Splunk are you running? can you change from &lt;STRONG&gt;searchPostProcess&lt;/STRONG&gt; to &lt;STRONG&gt;search&lt;/STRONG&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 06:02:35 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-03-08T06:02:35Z</dc:date>
    <item>
      <title>How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342225#M22249</link>
      <description>&lt;P&gt;There are various reports we add in Dashboard for which we get the message "No result found" when dashboard is completely loaded. I would like to customize this message and hardcode it somewhere so that I can display the message that I want to.&lt;/P&gt;

&lt;P&gt;Can someone help me in how I can achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342225#M22249</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-07T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342226#M22250</link>
      <description>&lt;P&gt;Are you looking to do something like this?&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/124157/timecharts-and-how-to-avoid-no-results-found-inspect.html"&gt;https://answers.splunk.com/answers/124157/timecharts-and-how-to-avoid-no-results-found-inspect.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342226#M22250</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-07T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342227#M22251</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;/P&gt;

&lt;P&gt;Thank you for your response. I am trying to achieve similar thing but not actually. So the post in your comment suggest how to avoid it. &lt;BR /&gt;
I am not trying to avoid the "No result found" scenario. I would want to display some customized message instead of "No Result Found".&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342227#M22251</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-07T20:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342228#M22252</link>
      <description>&lt;P&gt;Isn't both the same? If you implement the solution from that post, you'll get your custom message as you specify in the query, when there are no results. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342228#M22252</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-07T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342229#M22253</link>
      <description>&lt;P&gt;@SNaikwade... Check out Null Search Swapper example in Splunk 6.x Dashboard Examples app. You need to set a token&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;condition match="$job.resultCount$ == 0"&amp;gt;
          &amp;lt;set token="show_html"&amp;gt;foob&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;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then based on depends and rejects attributes you can display and/or hide any visualization including xml panel, visualizations like chart, table etc and also html panel. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;chart rejects="$show_html$"&amp;gt;
    &amp;lt;title&amp;gt;Top sourcetypes for index=_internal&amp;lt;/title&amp;gt;
    &amp;lt;search base="search_logic" /&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.legend.placement"&amp;gt;none&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
  &amp;lt;html depends="$show_html$"&amp;gt;
     &amp;lt;p style="color:blue;margin-left:30px;font-size:14px"&amp;gt;Search returned no results, so we've hidden the chart!&amp;lt;/p&amp;gt;
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also refer Splunk documentation : &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342229#M22253</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-07T20:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342230#M22254</link>
      <description>&lt;P&gt;Ok. Got it. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342230#M22254</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-07T21:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342231#M22255</link>
      <description>&lt;P&gt;@niketnilay  I have below code. And it still shoes "No result found"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;table rejects="$show_html$"&amp;gt;
    &amp;lt;title&amp;gt;Geographically Improbable Accesses&amp;lt;/title&amp;gt;
    &amp;lt;searchPostProcess&amp;gt; `uitime(prev_time)`
                        | table user, user_bunit, src, _time, session_city, session_country, app, prev_src, prev_time, prev_city, prev_country, prev_app, distance, speed &amp;lt;/searchPostProcess&amp;gt;
    &amp;lt;drilldown&amp;gt;
        &amp;lt;link&amp;gt;access_search?form.user=$row.user$&amp;amp;amp;earliest=$earliest$&amp;amp;amp;latest=$latest$&amp;lt;/link&amp;gt;
        &amp;lt;condition match="$job.resultCount$ == 0"&amp;gt;
          &amp;lt;set token="show_html"&amp;gt;foob&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;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
    &amp;lt;option name="count"&amp;gt;5&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
  &amp;lt;html depends="$show_html$"&amp;gt;
      &amp;lt;p style="color:blue;margin-left:30px;font-size:14px"&amp;gt;Search returned no results, so we've hidden the chart!&amp;lt;/p&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2017 22:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342231#M22255</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-07T22:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342232#M22256</link>
      <description>&lt;P&gt;@SNaikwade, which version of Splunk are you running? can you change from &lt;STRONG&gt;searchPostProcess&lt;/STRONG&gt; to &lt;STRONG&gt;search&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 06:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342232#M22256</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-08T06:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342233#M22257</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
I am using Splunk version 6.5.2.&lt;BR /&gt;
As you suggested I tried replacing searchPostProcess to search but still I am not getting result. I am still seeing No result found getting displayed.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342233#M22257</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-08T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342234#M22258</link>
      <description>&lt;P&gt;Just reverse depends and rejects between your table and panel.&lt;/P&gt;

&lt;P&gt;Also for debugging the Set/Unset Token Value please change the table title to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;title&amp;gt;Geographically Improbable Accesses ($show_html$)&amp;lt;/title&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, in HTML section, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;p style="color:blue;margin-left:30px;font-size:14px"&amp;gt;Search returned no results, so we've hidden the chart! ($show_html$)&amp;lt;/p&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it still does not work, please paste the final code.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342234#M22258</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-09T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342235#M22259</link>
      <description>&lt;P&gt;@niketnilay&lt;/P&gt;

&lt;P&gt;reversing the depends and rejects between table and panel did the trick. Thank you So much for assistance. Now I am able to see the message displayed in &lt;/P&gt;&lt;P&gt; tags.&lt;/P&gt;

&lt;P&gt;again, thank you so much.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 13:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342235#M22259</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-03-09T13:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Custom message in Dashboard panel in replace of "No results found." message?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342236#M22260</link>
      <description>&lt;P&gt;@SNaikwade... Glad that it worked!!! Please accept the answers if it has helped.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-Custom-message-in-Dashboard-panel-in-replace-of/m-p/342236#M22260</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-09T14:05:04Z</dc:date>
    </item>
  </channel>
</rss>

