Last week I've been trying to implement a JS script in a distributed environment, and while it worked fine in a single machine, the replication has not been made in all of the SH.
The question is: How can I deploy the changes made alongside the SH ? , already tried to use the command: splunk reload deploy-server
and while it didn't return any error message, the changes were not made. As a workaround I've tried to apply the changes in a SH then wait for it to replicate in the others, which seemingly worked fine. Still, isn't there a way (like the command listed before) to force changes among the SH ?
You need to push updated apps from the deployer server to all the search heads in the cluster.
If you make a change on one of the search head and it is replicated to other search heads then you don't need to push the apps but if not replicated then you need to copy changes (app directory) from that search head server($SPLUNK_HOME/etc/shcluster/apps/<app>/)) to the deployer server (in $SPLUNK_HOME/etc/apps/<app>/) and push to all search heads.