Reporting

ignoreOlderThan=7d

pacifikn
Communicator

Greetings!!!

What does this mean?

ignoreOlderThan=7d

Tags (1)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Causes the input to stop checking files for updates if the file modification time (modtime) has passed the threshold. This improves the speed of file tracking operations when monitoring directory hierarchies with large numbers of historical files (for example, when active log files share a directory with old files that no longer get writes).
Splunk Enterprise does not index files whose modification time falls outside when it first attempts to monitor the file.

You must specify . For example, "7d" indicates one week. Valid units are "d" (days), "h" (hours), "m" (minutes), and "s" (seconds).

For more info check this: https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/Monitorfilesanddirectorieswithinputs.conf

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Causes the input to stop checking files for updates if the file modification time (modtime) has passed the threshold. This improves the speed of file tracking operations when monitoring directory hierarchies with large numbers of historical files (for example, when active log files share a directory with old files that no longer get writes).
Splunk Enterprise does not index files whose modification time falls outside when it first attempts to monitor the file.

You must specify . For example, "7d" indicates one week. Valid units are "d" (days), "h" (hours), "m" (minutes), and "s" (seconds).

For more info check this: https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/Monitorfilesanddirectorieswithinputs.conf

0 Karma

gjanders
SplunkTrust
SplunkTrust

Keep in mind:

  • once ignored the file will never be looked at again by the forwarder (even if updated) unless the forwarder is restarted
  • Restarting the forwarder resets the ignoreOlderThan list so it only ignores older than 7d in your example (so if you have file server.log, it stops getting updated for 7 days, and then its updated, nothing gets indexed until next restart of the forwarder...)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...