Getting Data In

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

lmtaylor
Engager

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

somesoni2
SplunkTrust
SplunkTrust

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

http://docs.splunk.com/Documentation/Splunk/6.1.2/admin/Inputsconf

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...