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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...