<?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 Timechart - Replace &amp;quot;No Results Found&amp;quot; with &amp;quot;No Activity for Today&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316844#M94807</link>
    <description>&lt;P&gt;Hello (again),&lt;/P&gt;

&lt;P&gt;To go along with my previous question regarding using span=10 minutes using the following search:&lt;BR /&gt;
index=wineventlog user="*.ad" TaskCategory="Security Group Management" | timechart span=10m  count |reverse&lt;/P&gt;

&lt;P&gt;I'm using "today" in the time-picker&lt;/P&gt;

&lt;P&gt;This works fine with searches that have data for today. However; some of my searches do not have any activity for today, so the search comes up with "No Results Found".&lt;/P&gt;

&lt;P&gt;I would like to replace "No Results Found" with "No Activity for Today". Is this possible and how is this done?&lt;BR /&gt;
Again, many thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 14:12:45 GMT</pubDate>
    <dc:creator>TheJagoff</dc:creator>
    <dc:date>2017-07-19T14:12:45Z</dc:date>
    <item>
      <title>Timechart - Replace "No Results Found" with "No Activity for Today"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316844#M94807</link>
      <description>&lt;P&gt;Hello (again),&lt;/P&gt;

&lt;P&gt;To go along with my previous question regarding using span=10 minutes using the following search:&lt;BR /&gt;
index=wineventlog user="*.ad" TaskCategory="Security Group Management" | timechart span=10m  count |reverse&lt;/P&gt;

&lt;P&gt;I'm using "today" in the time-picker&lt;/P&gt;

&lt;P&gt;This works fine with searches that have data for today. However; some of my searches do not have any activity for today, so the search comes up with "No Results Found".&lt;/P&gt;

&lt;P&gt;I would like to replace "No Results Found" with "No Activity for Today". Is this possible and how is this done?&lt;BR /&gt;
Again, many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316844#M94807</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2017-07-19T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - Replace "No Results Found" with "No Activity for Today"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316845#M94808</link>
      <description>&lt;P&gt;This question is a duplicate of this one: &lt;A href="https://answers.splunk.com/answers/129774/change-no-results-found-message.html"&gt;https://answers.splunk.com/answers/129774/change-no-results-found-message.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;That question hasn't been answered, but I am pretty sure the answer is no, or at least, not directly.&lt;/P&gt;

&lt;P&gt;The HTML text is not defined in any way that is easily changed via CSS.&lt;/P&gt;

&lt;P&gt;Instead, you can add a message block to your SimpleXML that you can control. Here is the generic pattern you can use in SimpleXML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html depends="$search_msg$"&amp;gt;
  &amp;lt;h3 style="margin: 60px 0 50px 10px;"&amp;gt;$search_msg$&amp;lt;/h3&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;chart rejects="$search_msg$"&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
       index=wineventlog user="*.ad" TaskCategory="Security Group Management" | timechart span=10m count |reverse
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition match="'job.resultCount' &amp;gt; 0"&amp;gt;
        &amp;lt;unset token="search_msg"/&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="search_msg"&amp;gt;No Activity Found&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;          
  &amp;lt;/search&amp;gt;
  ...
&amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316845#M94808</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-07-19T14:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart - Replace "No Results Found" with "No Activity for Today"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316846#M94809</link>
      <description>&lt;P&gt;This is exactly what I wanted. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Replace-quot-No-Results-Found-quot-with-quot-No/m-p/316846#M94809</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2017-07-19T15:29:29Z</dc:date>
    </item>
  </channel>
</rss>

