Getting Data In

How to blacklist .git directory in each app.

matutter4
Explorer

I have several apps I update directly from github into my /opt/splunk/etc/shcluster/apps directory. The apps each contain their own .git folder.

Is there a way to ignore .git/ in every app so they aren't replicated across my Searchheads?

0 Karma
1 Solution

somesoni2
Revered Legend

See this link.
https://answers.splunk.com/answers/215960/can-you-control-what-gets-replicated-between-searc.html

You should to be able to blacklist your .git folder files from being replicated by adding following to server.conf

conf_replication_summary.blacklist.<name> = <blacklist_pattern>
* Blacklist files to be excluded from configuration replication summaries.

e.g.

conf_replication_summary.whitelist.lookups = (apps/*/.git/*) 

View solution in original post

somesoni2
Revered Legend

See this link.
https://answers.splunk.com/answers/215960/can-you-control-what-gets-replicated-between-searc.html

You should to be able to blacklist your .git folder files from being replicated by adding following to server.conf

conf_replication_summary.blacklist.<name> = <blacklist_pattern>
* Blacklist files to be excluded from configuration replication summaries.

e.g.

conf_replication_summary.whitelist.lookups = (apps/*/.git/*) 
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...