Getting Data In

Windows Forwarder - Unable to rotate/delete log file. Handle open by splunkd.exe?

mcrawford44
Communicator

Has anyone run into this before? I'm unable to rotate logs due to files being opened by the forwarder. The files have not changed in several days. No new events, nothing. Shouldn't Splunk sleep or let go of the file?

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Maybe... though if you intend to delete the file very soon after it's been written and you have delayed forwarding, you may already be deleting it before the forwarder even starts to get a handle on the file.

As an alternative, you can see what happens if you set ignoreOlderThan=3d or something similar in inputs.conf - the forwarder might let go of the file entirely by then.

0 Karma

ddrillic
Ultra Champion
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Have you tried the special Windows-only [MonitorNoHandle://<path>] in inputs.conf?

0 Karma

mcrawford44
Communicator

Won't this allow deletion of a file that is not completely indexed yet?

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...