Getting Data In

How to configure parameter for TailingProcessor to automatically retry reading a file after failing?

NK_1
Path Finder

It took a while to copy the large logfile over the slow network, and it looks like the TailingProcessor gave up after 2 tries:


09-06-2014 15:17:03.607 -0700 WARN FileClassifierManager - Unable to open 'D:\Logs\syslog2014-09-05'.
09-06-2014 15:17:03.607 -0700 WARN FileClassifierManager - The file 'D:\Logs\syslog2014-09-05' is invalid. Reason: cannot_read
09-06-2014 15:17:03.607 -0700 INFO TailingProcessor - Ignoring file 'D:\Logs\syslog2014-09-05' due to: cannot_read
09-06-2014 15:22:47.707 -0700 WARN FileClassifierManager - Unable to open 'D:\Logs\syslog2014-09-05'.
09-06-2014 15:22:47.707 -0700 WARN FileClassifierManager - The file 'D:\Logs\syslog2014-09-05' is invalid. Reason: cannot_read
09-06-2014 15:22:47.707 -0700 INFO TailingProcessor - Ignoring file 'D:\Logs\syslog2014-09-05' due to: cannot_read

Any way to make it automatically retry a couple more times (via some configuration parameter somewhere)?
Using Splunk v6.1.3 for Windows.

0 Karma

lguinn2
Legend

Before ask Splunk to do this more times, have you checked:

  1. Does the file exist?
  2. Splunk is running under some user credentials. Is this file accessible by that user?
  3. Does another process have the file locked so that Splunk cannot read it?
0 Karma

lguinn2
Legend

Is there any way to set the copy process so that that it doesn't lock the file?

Is it possible to forward the file from its original location?

0 Karma

NK_1
Path Finder
  1. Yes.
  2. Yes.
  3. Yes, during the slow copy process.

If the file was small and/or the copy process was fast, Splunk indexes the file fine.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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