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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...