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!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...