Getting Data In

Why does Splunk 'lose interest' in files that are infrequently written to?

timrich66
Communicator

In our non-prod environment, some files are not written to on a regular basis.  In these cases the UF often needs to be restarted to start the ingestion of events.

The monitor stanza in use is very basic and does not have an 'ignoreOlderThan' value set.

Here is an example - 

[monitor:///my_non_prod_path/Log/app.log]
index=my_non_prod_index
sourcetype = nonprd_sourcetype
disabled=false

Are there global variables that would override this and cause events to not be ingested?

Thanks

 

Labels (2)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

there are so many reasons for not reading file using monitor input.

worth reading below:

https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs

————————————
If this helps, give a like below.

View solution in original post

thambisetty
SplunkTrust
SplunkTrust

there are so many reasons for not reading file using monitor input.

worth reading below:

https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs

————————————
If this helps, give a like below.

timrich66
Communicator

Thanks for the link.  It makes interesting reading.  I have asked our unix SA to add debugging to the UF so I can get more details.

Events from different files on the server in question are being ingested and the same file name on a different server is also providing events.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...