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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...