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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...