Getting Data In

Sometimes get a TailReader ERROR on monitoring a file. Why?

adamsmith47
Communicator

I have a Windows 2008 R2 server with a Splunk UF v6.6.7 installed.

We are monitoring many files on this server. Occasionally our data looks weird, and we come to find out a file wasn't indexed as we'd expect. Today a file wasn't indexed properly, so I looked at the logs, sure enough there is a TailReader ERROR. I'm sure restarting the Splunk UF will resolve (this is how we've fixed it before), but I'd REALLY love to know why this is happening, and prevent it.

Scrubbed btool of the inputs.conf stanza:

[monitor:D:\Logs\<my_folder>]
_rcvbuf = 1572864
crcSalt = <SOURCE>
disabled = false
evt_dc_name =
evt_dns_name =
evt_resolve_ad_obj = 0
host = <my_host>
ignoreOlderThan = 14d
index = <my_index>
sourcetype = <my_sourcetype>
whitelist = <my_filename_prefix>.+\.csv

Scrubbed log from today when file wasn't indexed:

06-13-2018 15:17:22.014 -0400 ERROR TailReader - error from read call from 'D:\Logs\<my_folder>\<my_filename_prefix>_06-13-2018.csv'.

Any help is greatly appreciated! Thank you!
Adam

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

Just shooting from the hip here, but we are talking about Windows. If there is a process actively writing to a file on Windows, it may have a read error due to the nature of how Windows can completely lock a file. Is this happening consistently on that file? I don't know if this would then prevent continued processing of the file, but it could be something to look into.

0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...