Getting Data In

File monitoring issues

remy06
Contributor

I've set splunk to monitor a log file via data inputs and it has been going on fine till recently.

When I noticed splunk had stopped receiving events since last week,I checked the actual log file but the log file is still being updated with events from today.Also didn't notice any issues in splunkd log..The log file is being updated but splunk seems to have stop indexing the events..

Any idea?

Tags (1)
0 Karma

howyagoin
Contributor

I've had this problem a number of times under Splunk 4.2, but two things have largely solved it -- one clue in my case was that restarting Splunk would typically get the file to be read again -- that's not optimal for a production environment, so, two changes I made helped considerably:

1) ignoreOlderThan = 7d

I put this in stanzas for inputs.conf where I have a lot of files that are archived - Sometimes on restart Splunk would spend hours or days trying to go through them all and consider re-indexing. By including this directive in file/directory monitoring stanzas it would allow Splunk to more speedily get to the files that were (from my point of view) being ignored)

2) crcSalt = <SOURCE>

I add this to most stanzas in inputs.conf where I'm continuously monitoring a single file - see the documentation for the various options here, but, adding this has helped me considerably in the situations you describe.

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...