<?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: show 0 instead of No Results. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603042#M209871</link>
    <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;appendpipe&lt;/FONT&gt; command to detect the absence of results and insert "dummy" results for you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup append=t NEW.csv
| lookup OLD.csv UniqueID OUTPUTNEW UniqueID as NEW
| where like(ISSUE,"%Wrong%")
| where isnull(NEW)
| stats count as New_event by DATE_REPORT
| eval Date=strftime(strptime(DATE_REPORT, "%Y-%m-%d %H:%M:%S"), "%m-%d-%Y")
| appendpipe [ stats count | eval DATE_REPORT=strftime(now(), "%m-%d-%Y") | eval New_event=0 | where count=0 | fields - count ]
| fields Date New_event&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 15:54:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-06-23T15:54:08Z</dc:date>
    <item>
      <title>Showing 0 instead of no results, how to get this line to append to another lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603019#M209866</link>
      <description>&lt;P&gt;Hi Everyone: I have this query on which is comparing the file from last week to the one of this one. I'm doing this to bring new events by date, but when there is no results found it is no showing me the Date and a 0, and I need this line to append it to another lookup.&lt;/P&gt;
&lt;P&gt;| inputlookup append=t NEW.csv&lt;BR /&gt;| lookup OLD.csv UniqueID OUTPUTNEW UniqueID as NEW&lt;BR /&gt;| where like(ISSUE,"%Wrong%")&lt;BR /&gt;| where isnull(NEW)&lt;BR /&gt;| stats count as New_event by DATE_REPORT&lt;BR /&gt;| eval Date=strftime(strptime(DATE_REPORT, "%Y-%m-%d %H:%M:%S"), "%m-%d-%Y")&lt;BR /&gt;| fields Date New_event&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get something like this:&lt;/P&gt;
&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New_event&lt;BR /&gt;6-23-2022&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 21:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603019#M209866</guid>
      <dc:creator>fereze</dc:creator>
      <dc:date>2022-06-23T21:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: show 0 instead of No Results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603042#M209871</link>
      <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;appendpipe&lt;/FONT&gt; command to detect the absence of results and insert "dummy" results for you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup append=t NEW.csv
| lookup OLD.csv UniqueID OUTPUTNEW UniqueID as NEW
| where like(ISSUE,"%Wrong%")
| where isnull(NEW)
| stats count as New_event by DATE_REPORT
| eval Date=strftime(strptime(DATE_REPORT, "%Y-%m-%d %H:%M:%S"), "%m-%d-%Y")
| appendpipe [ stats count | eval DATE_REPORT=strftime(now(), "%m-%d-%Y") | eval New_event=0 | where count=0 | fields - count ]
| fields Date New_event&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 15:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603042#M209871</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-23T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: show 0 instead of No Results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603074#M209879</link>
      <description>&lt;P&gt;&lt;EM&gt;It works! Thanks!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 20:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-0-instead-of-no-results-how-to-get-this-line-to-append/m-p/603074#M209879</guid>
      <dc:creator>fereze</dc:creator>
      <dc:date>2022-06-23T20:05:16Z</dc:date>
    </item>
  </channel>
</rss>

