<?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: Reporting on zero results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60823#M14956</link>
    <description>&lt;P&gt;Just add "... | search prod_condfusion_files=0" to your search.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:18:19 GMT</pubDate>
    <dc:creator>Stephen_Sorkin</dc:creator>
    <dc:date>2020-09-28T09:18:19Z</dc:date>
    <item>
      <title>Reporting on zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60820#M14953</link>
      <description>&lt;P&gt;In order to identify web content that hasn't been pulled in a while, I thought I would use Splunk since a) my Apache logs are in Splunk already, and b) I can easily create a scripted input to get a list of files under the various directories.  Initially, I'm going to do this for our .cgi's and .pl files&lt;/P&gt;

&lt;P&gt;So, I have one index for the standard Apache access logs.  I do have a field extraction for this called file.  More on that later.&lt;/P&gt;

&lt;P&gt;I then created a scripted input that runs once per day to pull a list of files under our content sub-directory (we're talking 13,000+ files).  An example of the input looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09/29/10 15:42:46 -0400,file=actDefaultAccSet.cfm,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=liferayLogin.html,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=favicon.ico,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=favicon.gif,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=Cps_Doc_Upload_Rules.doc,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=ordocs-index.jsp,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=contact_me2.cfm,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=orprefs-index.html,app_root=public,dir=/cfmx_files/cfmx61/public
09/29/10 15:42:46 -0400,file=ppsathanks.html,app_root=public,dir=/cfmx_files/cfmx61/public
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can do a query that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod_ohs_logs" [search index="prod_coldfusion_files" file="*\.cgi" OR file="*\.pl" | fields file ] | table file | dedup file
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which only returns 36 out of the 125 .pl / .cgi files out there, which is not exactly what I'm looking for.&lt;/P&gt;

&lt;P&gt;Basically, I'm looking to take a list of files from a specific query, check to see how many of those files are found in the Apache logs, including ones with zero results.&lt;/P&gt;

&lt;P&gt;I've spent a couple of days trying to get this working, and I haven't been able to.  Any ideas on how to do this? Is it even possible?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 02:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60820#M14953</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-09-30T02:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60821#M14954</link>
      <description>&lt;P&gt;Your best strategy here is to use an OR search, to load data from both prod_ohs_logs and prod_coldfusion_files at the same time and see, for each file, whether it is in one, the other or both of the indexes. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod_ohs_logs" OR (index="prod_coldfusion_files" file="*\.cgi" OR file="*\.pl") | chart count by file index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Sep 2010 03:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60821#M14954</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-09-30T03:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60822#M14955</link>
      <description>&lt;P&gt;Great, it's a starting point.  I need to figure out how to only list the files that have 1 as the results under prod_coldfusion_files..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60822#M14955</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2020-09-28T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60823#M14956</link>
      <description>&lt;P&gt;Just add "... | search prod_condfusion_files=0" to your search.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60823#M14956</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2020-09-28T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60824#M14957</link>
      <description>&lt;P&gt;Pure awesomeness Stephen.  Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 00:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reporting-on-zero-results/m-p/60824#M14957</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-10-01T00:27:13Z</dc:date>
    </item>
  </channel>
</rss>

