Getting Data In

ignoreOlderThan in inputs.conf

siva_cg
Path Finder

Hi All,

We have Splunk environment with nearly 1000 Universal Forwarders sending logs to Indexers. These Universal Forwarders are managed by Deployment Server.

Now the issue is few of the logs from a folder are missing on Indexers. By running the btool and troubleshooting commands, we came to know that the file is being ignored with the below error:

type = ignored (modtime fell behind window of 604800 seconds ago)

But the files are modified and updated even today. So could you please help us what could be the issue and how to resolve this? The inputs stanza configured is as below:

[monitor:///myfolder/]
whitelist = (a|b|c).log
index = myindex
sourcetype = mysourcetype
ignoreOlderThan = 7d
recursive = true

Thanks in advance.

0 Karma

somesoni2
Revered Legend

When a monitoring is setup with ignoreOlderThan attribute, it'll exclude all the files which were last modified earlier than the set value. Those excluded files are not included back automatically when they are actually updated. To have Splunk re-evaluate the monitoring file list, you need to get the Splunk (forwarder) instance restarted. If you've a script/utility using which you can re-start all forwarders, do that. Otherwise, you can make some changes to existing app or create a new dummy apps and assign to all fwd with restartSplunkd=true.

0 Karma

ddsnatalia
New Member

Hi @somesoni2 ,

I have a very similar issue, but we use heavy forwarder and there are thousands of files that have already been indexed (<7days old) and are stored in the same directory; if I change the ignoreOlderThan attribute to say 90 days, will already processed files be re-indexed again?

Thank you,

Nat

0 Karma

siva_cg
Path Finder

Thank you very much @somesoni2. This clearly explains why logs are not being monitored. We will restart the UF as suggested.

0 Karma
Get Updates on the Splunk Community!

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 ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...