<?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 handle gracefully &amp;quot;No Results Found&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415250#M169269</link>
    <description>&lt;P&gt;Another option is using the appendpipe&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index sourcetype="sourcetype" SqlTable=* TotalError&amp;gt;0
| chart sum(Errors) as Errors , sum(IfClause) as ClauseErrors by SqlTable
| appendpipe [| stats count | where count=0 | eval message="Your Custom Message Here" | table message
| rename COMMENT as "The appendpipe will add a row with your custom message if search above returns nothing(count=0)"  ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 May 2018 21:18:05 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-05-22T21:18:05Z</dc:date>
    <item>
      <title>How to handle gracefully "No Results Found"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415248#M169267</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I've the below query. I wanted to know when there're no errors, instead of showing "No Results Found", how can I show a customized message to the user.&lt;BR /&gt;
My Query:&lt;BR /&gt;
index=index sourcetype="sourcetype" SqlTable=* TotalError&amp;gt;0&lt;BR /&gt;
| chart sum(Errors) as Errors , sum(IfClause) as ClauseErrors  by SqlTable&lt;/P&gt;

&lt;P&gt;Note:  "TotalError" is a calculated field that provides me a sum of "Errors+IfClause". Is there a way to show desired text on output apart from uploading a CSV file?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 20:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415248#M169267</guid>
      <dc:creator>splunking1t</dc:creator>
      <dc:date>2018-05-22T20:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle gracefully "No Results Found"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415249#M169268</link>
      <description>&lt;P&gt;Hi splunking1t,&lt;/P&gt;

&lt;P&gt;take a look at this answer &lt;A href="https://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html"&gt;https://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html&lt;/A&gt; where I explain it in detail how this can be done.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 20:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415249#M169268</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-22T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle gracefully "No Results Found"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415250#M169269</link>
      <description>&lt;P&gt;Another option is using the appendpipe&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index sourcetype="sourcetype" SqlTable=* TotalError&amp;gt;0
| chart sum(Errors) as Errors , sum(IfClause) as ClauseErrors by SqlTable
| appendpipe [| stats count | where count=0 | eval message="Your Custom Message Here" | table message
| rename COMMENT as "The appendpipe will add a row with your custom message if search above returns nothing(count=0)"  ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 21:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415250#M169269</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-22T21:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle gracefully "No Results Found"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415251#M169270</link>
      <description>&lt;P&gt;@splunking1t, get the &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples app&lt;/A&gt; from Splunkbase and check out Null Result Swapper example, to show your custom message in case no result is found by the search query.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/595248/timechart-with-no-data-gives-no-results-found.html"&gt;https://answers.splunk.com/answers/595248/timechart-with-no-data-gives-no-results-found.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 21:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-gracefully-quot-No-Results-Found-quot/m-p/415251#M169270</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-22T21:30:45Z</dc:date>
    </item>
  </channel>
</rss>

