Getting Data In

Trying to filter logs in the inputs- not working

saravanababumr
New Member

Trying to filter the backdated logs which has appeared from till yesterday and start with recent logs

[monitor:///dir1/app/app1/jboss/server/default/log/localhost_access_log.*]
index = index_filter_local
_blacklist = (localhost_access_log.2011-11-30.log|localhost_access_log.2011-12-[01-11])

I tried to filter using the _blacklist but this is not working , i don't see the indexing itself is happening

Tags (1)
0 Karma

Damien_Dallimor
Ultra Champion

Have you tried using the "ignoreOlderThan" property in your monitor stanza ?

[monitor:///dir1/app/app1/jboss/server/default/log/localhost_access_log.*] 
index = index_filter_local
ignoreOlderThan = 1d
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 ...