Getting Data In

How to exclude files from indexing using blacklist?

sergeyvinnik
Explorer

I need to blacklist files with specific letters inside the hostname like:

d:\logs\xxxxxxxxxMyLog__yyyyyyyy.txt

In this sample I want to ignore files with "MyLog__" combination inside the hostname.
What should I enter into Blacklist field in Web GUI?

Tags (1)
0 Karma

dshpritz
SplunkTrust
SplunkTrust

You would enter something like:

.*MyLog__.*

0 Karma

emechler_splunk
Splunk Employee
Splunk Employee

When you say hostname, do you really mean the full path name to the file?

0 Karma
Get Updates on the Splunk Community!

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 ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...