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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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!

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 ...