Getting Data In
Provide Splunk Cloud feedback in this confidential UX survey by June 17
for a chance to win a $200 Amazon gift card!

How to configure inputs.conf on a Universal Forwarder to only read the current day's file that contains the date?


I'm trying to configure inputs.conf to only read the current days file that contains the date. The file name changes daily. An example file name would be: localhost.2015-01-06.log. How do I configure the inputs.conf file to only read current day file on a windows server? I don't want to read all files (localhost.*.log).

Revered Legend

In inputs.conf, there is a property called "ignoreOlderThan". Setting this property will ensure that the files whose last modification time is older than specified values (e.g. 1d, one day) will be ignored. See more here:-

Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!