<?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: help for displaying a text in a chart panel if no results in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527289#M4005</link>
    <description>&lt;P&gt;I use a input token in my dashboard&lt;/P&gt;&lt;P&gt;This input coorespond to the hostname I need to check&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="text" token="tok_filterhost" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Hostname&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If there is not event ID for this host I need to display a message&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`weatherevent` 
| fields host EventCode 
| search host=$tok_filterhost$
| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| eval EventCode=case(EventCode==41, "System reboot without cleanly shutting down first", EventCode==10111, "Device offline due to a user-mode driver crash", EventCode==10110, "Problem  with ouser-mode drivers") 
| stats count as ID by EventCode 
| eval ID=if(isnull(ID),"No critical ID for this host",ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 12:40:34 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-10-30T12:40:34Z</dc:date>
    <item>
      <title>help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527213#M3991</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`weatherevent` 
| fields host EventCode 

| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| search host=tutu
| eval EventCode=case(EventCode==41, "System reboot without cleanly shutting down first", EventCode==10111, "Device offline due to a user-mode driver crash", EventCode==10110, "Problem  with ouser-mode drivers") 
| stats count as ID by EventCode 
| eval ID=if(isnull(ID),"No critical ID for this host",ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to display a message in a chart panel if there is no results&lt;/P&gt;&lt;P&gt;I have done it in a eval command but it doesn't works&lt;/P&gt;&lt;P&gt;could you help me please??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 06:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527213#M3991</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-30T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527225#M3992</link>
      <description>&lt;P&gt;This is a classic case of trying to display something that doesn't exist in your data. The way around this is to add to your data to give splunk something to display. In your case, you need an eventcode for every host you are interested in that doesn't already have an eventcode or another way would be to add a default event code for every host, then overwrite it with the event code for that host from the data.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527225#M3992</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T07:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527233#M3994</link>
      <description>&lt;P&gt;it doesnt help me a lot...&lt;/P&gt;&lt;P&gt;something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count as ID by EventCode host
| eval ID=if(isnull(ID),"No critical ID for this host",ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527233#M3994</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-30T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527239#M3995</link>
      <description>&lt;P&gt;Not really. You are still trying to do something for a host that splunk doesn't have any data for. Which hosts do you want these messages for?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 08:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527239#M3995</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T08:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527251#M3998</link>
      <description>&lt;P&gt;I want this message for hosts that have no eventcode corresponding&lt;/P&gt;&lt;P&gt;it means hosts which have no ID 41, ID 10110 or 10111 events&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527251#M3998</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-30T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527255#M3999</link>
      <description>&lt;P&gt;Which hosts are they? If there are no events for that host in your data, how does splunk know which hosts you are interested in?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527255#M3999</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527265#M4001</link>
      <description>&lt;P&gt;But I dont need to identify the hostname concerned...&lt;/P&gt;&lt;P&gt;I just need to display a message is there is no event with the related ID......&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527265#M4001</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-30T09:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527268#M4003</link>
      <description>&lt;P&gt;You said earlier&lt;/P&gt;&lt;PRE&gt;| stats count as ID by EventCode host
| eval ID=if(isnull(ID),"No critical ID for this host",ID)&lt;/PRE&gt;&lt;P&gt;This mentions host. Are you now saying you aren't interested in the host?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 10:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527268#M4003</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: help for displaying a text in a chart panel if no results</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527289#M4005</link>
      <description>&lt;P&gt;I use a input token in my dashboard&lt;/P&gt;&lt;P&gt;This input coorespond to the hostname I need to check&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="text" token="tok_filterhost" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Hostname&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If there is not event ID for this host I need to display a message&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`weatherevent` 
| fields host EventCode 
| search host=$tok_filterhost$
| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| eval EventCode=case(EventCode==41, "System reboot without cleanly shutting down first", EventCode==10111, "Device offline due to a user-mode driver crash", EventCode==10110, "Problem  with ouser-mode drivers") 
| stats count as ID by EventCode 
| eval ID=if(isnull(ID),"No critical ID for this host",ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 12:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-for-displaying-a-text-in-a-chart-panel-if-no-results/m-p/527289#M4005</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-10-30T12:40:34Z</dc:date>
    </item>
  </channel>
</rss>

