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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...