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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...