Getting Data In

How to configure inputs.conf to only index the log generated today from my sample data?

New Member

hi my friends,

I have some logs like this:

--localhost_access_log2016-06-24.txt
--localhost_access_log2016-06-25.txt
--localhost_access_log2016-06-26.txt
--localhost_access_log2016-06-27.txt
--localhost_access_log2016-06-28.txt
--localhost_access_log2016-06-29.txt

I only want to get the log generated today, but I do not know how to configure inputs.conf.

Can u help me?
thk u v m

Tags (2)
0 Karma

Motivator

Hello,

May be ignoreOlderThan=1d?. Refer this answer

https://answers.splunk.com/answers/80608/how-to-make-a-forwarder-ignore-logs-other-than-todays-ignor...

Thanks,
Raghav

0 Karma