<?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: 2008 Last Access time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30918#M5437</link>
    <description>&lt;P&gt;Does this work for a directory monitor?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2011 18:13:08 GMT</pubDate>
    <dc:creator>stuartamurray</dc:creator>
    <dc:date>2011-01-25T18:13:08Z</dc:date>
    <item>
      <title>2008 Last Access time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30916#M5435</link>
      <description>&lt;P&gt;We've got a fairly chunky installation and generally things hum along nicely.  However sometimes I get a situation where stuff is getting logged but forwarders don't forward the records!!&lt;/P&gt;

&lt;P&gt;Reading around, it appears that Windows 2008 does NOT always update the LastAccessTime on files with open handles (like log files)!!  &lt;/P&gt;

&lt;P&gt;I am trying a work around where I use FileInfo.LastAccessTime = DateTime.Now();&lt;/P&gt;

&lt;P&gt;I'll let you know how I get on.&lt;/P&gt;

&lt;P&gt;Come back Linux all is forgiven&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2011 00:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30916#M5435</guid>
      <dc:creator>stuartamurray</dc:creator>
      <dc:date>2011-01-25T00:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: 2008 Last Access time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30917#M5436</link>
      <description>&lt;P&gt;You can work around this in Splunk by setting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;alwaysOpenFile = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the inputs.conf stanza for the monitored file in question. This will cause Splunk to open and read the file to determine if it has changed rather than just looking at the modification time.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2011 07:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30917#M5436</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-01-25T07:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2008 Last Access time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30918#M5437</link>
      <description>&lt;P&gt;Does this work for a directory monitor?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2011 18:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30918#M5437</guid>
      <dc:creator>stuartamurray</dc:creator>
      <dc:date>2011-01-25T18:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: 2008 Last Access time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30919#M5438</link>
      <description>&lt;P&gt;Ok, setting the LastAccessTime from the logger code fails as the file is opened already and you get an access exception when trying to set the flag.!  So, looks like the suggestion below is the only game in town!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2011 21:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/2008-Last-Access-time/m-p/30919#M5438</guid>
      <dc:creator>stuartamurray</dc:creator>
      <dc:date>2011-01-25T21:37:34Z</dc:date>
    </item>
  </channel>
</rss>

