Monitoring Splunk

timeframe for monitoring old files

a212830
Champion

Hi,

Will the UF ignore files that are older than a certain value? I am testing against some old files (january), and it doesn't appear to be picking them up.

Tags (1)
0 Karma
1 Solution

bmacias84
Champion

This depends on how you defined your monitor stanza in your inputs.conf. By default ignoreOlderThan settings is disabled and recurisve settings is true

If your stanza is defined like such it will pick up all file in directory and sub-directories


[monitor:///var/log]

If youwant to limit which log files to be monitored:

[monitor:///var/log]
ignoreOlderThan=3d
recurisve=false

Also use the btool to determine which settings are being applied by which apps or TAs.

i.e. ./splunk btool --debug inputs list

Additional Reading:

Inputsconf

View solution in original post

bmacias84
Champion

This depends on how you defined your monitor stanza in your inputs.conf. By default ignoreOlderThan settings is disabled and recurisve settings is true

If your stanza is defined like such it will pick up all file in directory and sub-directories


[monitor:///var/log]

If youwant to limit which log files to be monitored:

[monitor:///var/log]
ignoreOlderThan=3d
recurisve=false

Also use the btool to determine which settings are being applied by which apps or TAs.

i.e. ./splunk btool --debug inputs list

Additional Reading:

Inputsconf

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