Getting Data In

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

xtlyk
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

Raghav2384
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
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...