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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...