I'm trying to configure changes to my slave nodes. I understand that on the master we have to go to the master apps local and copy files there and push the bundle. But, I was wondering since there is file order precedence, does Splunk look into each file for configurations? Or does it look into highest priority and go with that?
I'm wondering if I just push only one configuration instead of copying the entire default configuration and adding to that. Would the slave nodes still look into the default configuration? Or just the configs from the slave apps?
@rung8: I would do this, create a custom-app on your cluster-master and apply the bundle, in this way you have more control over the configurations you deploy and it's easy to manage...
1. ClusterMaster: $SPLUNKHOME/etc/master-apps/customapp(with all configs in here)
NOTE:you can have multiple-custom apps based on the functionality(easy to differentiate and troubleshoot)
2. ClusterMaster:apply cluster bundle
3. Indexers(Peer-nodes): $SPLUNKHOME/etc/slave-apps/customapp(downloaded here by default)
Follow this splunkdoc for more details...
Thanks for your reply prakash007.
What would be the difference from creating the customapp directory and adding configuration files there compared to creating them inside $splunkhome/etc/master-apps/cluster/local
you will end up with all configs in one location($SPLUNKHOME/etc/masterapps/cluster/local), but with custom-apps...
for instance I create 2 different custom-apps like networkTA(props and transforms..etc)for my network gear,apache_TA(props and transforms..etc) for apache logs..
In that way it's easy to manage the configs based on functionality, at the end it's your preference 🙂
Ah I see. Thank you very much for this input. I can see how much more flexible it is when configured this way. I will try it out.
I hope that makes sense and if you can clarify this it would be great! Thank you
There are few configs that are not recommended to distribute through the bundle...
How the file precedence works..
Coming to conflicts, it depends on your orchestration when you make any changes to configs.