Getting Data In

Why does ignoreolderthan=1d still result in the indexing of files older than 1 day?

lycollicott
Motivator

My 6.3.1 inputs.conf is:

[monitor://E:\Tomcat-instance1\logs]
index=instance1_appl
sourcetype=tomcat-appl
ignoreolderthan=1d

There are 467 files in the E:\Tomcat-instance1\logs directory.
62 files have date stamps within the current month.
123 files are older than 5 months.
The oldest file is 11 months old.
All 467 files are displayed by "splunk list monitor", but that is normal behavior (as far as I know).
All 467 files were indexed and that is not what I expected.

0 Karma
1 Solution

lycollicott
Motivator

I figured it out. I used "ignoreolderthan" instead of "ignoreOlderThan" and I never noticed that I had not used the proper case for the parameter.

View solution in original post

0 Karma

lycollicott
Motivator

I figured it out. I used "ignoreolderthan" instead of "ignoreOlderThan" and I never noticed that I had not used the proper case for the parameter.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...