<?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 Find files that are not being accessed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-files-that-are-not-being-accessed/m-p/103943#M21873</link>
    <description>&lt;P&gt;The scenario:&lt;BR /&gt;
I have a scripted input that gives me a list of files in a directory.  On a regular basis I want to run a search that will see how many times each of those has been served by the webserver.  I also want to include in the report any files that have not been hit in the report.&lt;/P&gt;

&lt;P&gt;Assume the subsearch for the list of files is just:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search sourcetype=dirlist | fields filename ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And that it's searching against normal apache access logs.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2012 19:58:05 GMT</pubDate>
    <dc:creator>christopher_hod</dc:creator>
    <dc:date>2012-07-19T19:58:05Z</dc:date>
    <item>
      <title>Find files that are not being accessed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-files-that-are-not-being-accessed/m-p/103943#M21873</link>
      <description>&lt;P&gt;The scenario:&lt;BR /&gt;
I have a scripted input that gives me a list of files in a directory.  On a regular basis I want to run a search that will see how many times each of those has been served by the webserver.  I also want to include in the report any files that have not been hit in the report.&lt;/P&gt;

&lt;P&gt;Assume the subsearch for the list of files is just:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search sourcetype=dirlist | fields filename ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And that it's searching against normal apache access logs.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2012 19:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-files-that-are-not-being-accessed/m-p/103943#M21873</guid>
      <dc:creator>christopher_hod</dc:creator>
      <dc:date>2012-07-19T19:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find files that are not being accessed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-files-that-are-not-being-accessed/m-p/103944#M21874</link>
      <description>&lt;P&gt;Maybe something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined [ search sourcetype=dirlist | fields filename ]
| stats count as hitcount by filename
| append [ search sourcetype=dirlist | fields filename | eval hitcount=0 ]
| stats max(hitcount) by filename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2012 20:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-files-that-are-not-being-accessed/m-p/103944#M21874</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-07-19T20:01:27Z</dc:date>
    </item>
  </channel>
</rss>

