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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...