Getting Data In

Universal forwarder stops monitoring a file due to alleged lock

spock_yh
Path Finder

I have a universal forwarder set up to monitor an apache access log, on a Windows machine. Every few days I get the following message in splunkd.log:

06-30-2011 15:00:39.281 -0700 WARN FileInputTracker - Error reading CRC: The process cannot access the file because another process has locked a portion of the file.
06-30-2011 15:00:39.312 -0700 ERROR TailingProcessor - Ignoring path due to: Could not checksum file='D:\Sundaysky\medusa\logs\media.access.log'.

After which the universal forwarder stops monitoring the file. I know of nothing that locks the log file (as far as I know apache doesn't do this). Moreover, the forwarder doesn't recover from this error - I have to detect this myself and restart the forwarder for it to read the file again.

Any help on this would be greatly appreciated.

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi spock_yh

you can use Process Explorer to see what is holding the lock on the file. Besides Apache it could be a running anti virus?

regards

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...