Getting Data In

blacklist events from log file

newbiesplunk
Path Finder

Hi,
I wish to exclude certain events not to forward to indexer, as below. How to configure that? thks & rgds

.......Directory=.....
....Module=abc....

Tags (1)
0 Karma

Runals
Motivator

There are a couple ways to do that but if you could flesh out some examples of what you are talking about it would be easier to help. The closest thing to the data is generally preferred/the best. That would be done with using blacklist in an an inputs.conf on the forwarder. That would be placed in $SPLUNK_HOME/etc/system/local OR could be pushed out by a deployment server in which case they would live in $SPLUNK_HOME/etc/apps/<your app>/local/

Exclude: /var/log/foo

[monitor::///var/log]
blacklist = foo

0 Karma

krish3
Contributor

I believe you are looking something like eventlog filtering.

Checkout EventLog filtering using inputs.conf here

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...