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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...