Getting Data In

Why am I only getting 3 days worth of logs?

carlyleadmin
Contributor

Hi,

i am monitoring IIS logs for my environment and i want to ignore the older log files.i just want the files for the last 3 days.
here is my inputs.conf

[monitor://C:\inetpub\logs\LogFiles\W3SVC2]
disabled=false
index=fam
sourcetype=ms:iis:auto
ignoreOlderThan=2d

attached are the screenshot for the log file location and output for the list monitoralt text

Any help is appreciated

Thanks

0 Karma
1 Solution

micahkemp
Champion

It's likely your configuration is working as expected.

./bin/splunk list monitor will still show the files as being monitored, but that doesn't indicate they will be indexed. Have you searched your indexed data to ensure the old data hasn't actually been ignored?

View solution in original post

0 Karma

micahkemp
Champion

It's likely your configuration is working as expected.

./bin/splunk list monitor will still show the files as being monitored, but that doesn't indicate they will be indexed. Have you searched your indexed data to ensure the old data hasn't actually been ignored?

0 Karma

carlyleadmin
Contributor

Thanks for the quick response as a matter of fact i don't have data older than 4 days.Thanks MicahKemp

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...