If you are using deploment server to create the token and push it to your heavy forwarders where it should be actually authenticate then you have to: 1. To make sure you change useDeploymentServer flag to true as below. useDeploymentServer = 1 When this option is set to 1 and you make UI-based HEC changes on the deployment server, those changes are placed directly in the $SPLUNK_HOME/etc/deployment-apps/splunk_httpinput/ folder, rather than in $SPLUNK_HOME/etc/apps/folder. Because if your inputs changes is there in the $SPLUNK_HOME/etc/apps/<anyapp>/inputs.conf on deployment server and also in your Heavy forwarder . Then the rest/curl call to token will end up in Invalid token response code 4.
... View more