Getting Data In

Blacklist pattern for distsearch.conf

ride76
Explorer

Does anyone have any examples of regex used in the Blacklist patterns for distsearch.conf? We are trying to limit what gets replicated in distributed searches and I thought this would be a good start. We currently have the following in our distsearch.conf:

system [replicationBlacklist]
system lookupindexfiles = (system|(apps/(?!pdfserver))|users(/_reserved)//)/lookups /.index($|/...)
system sampleapp = apps/sample_app/...

I am guessing replacing "sampleapp" with a current application that is running on my Splunk instance will stop this app from replicating. Is this correct? Do I need additional regex?

asimagu
Builder

Hi

There are a couple of options that you can use for this regex. Both of them worked for me:

[replicationBlacklist]
sample1 = ...appname1...
sample2 = .appname2.

That would blacklist the whole lot of files from those apps, you could also only blacklist specific files from inside an app by including the whole path to the file

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...