every time I modify my Pass4symm key in outputs.conf needed to forward to a different Splunk environment it ends up getting rewritten to the pass4symm key that is in the server.conf
how do I set a pass4symm key to 2 different keys one for my Splunk environment and one to other environment i need to forward logs to
That setting should not change on its own. Are those configurations being deployed by a Deployment Server? If so, are you changing the pass4SymmKey in the HF or the DS?
Also, if you know the list of indexers of the instances you don't have access to, you can setup a group which does not use the pass4SymmKey. The pass4Symm key is used for the HF connect to the Cluster Manager to get a list of the available indexers and not to actually send the data.
Hi tam82,
If you're using pass4SymmKey, you are probably using indexer discovery in your environment.
Do you have an index_discovery stanza for each environment?
In alternative you can setup tcp groups with all the available indexers as target which does not use the pass4SymmKey and you can change the default group.
[tcpout]
defaultGroup = group1,group2
[tcpout:group1]
server=10.1.1.197:9997
[tcpout:group2]
server=10.100.1.1:9997,10.100.1.2:9997
There are more details in the docs here:
https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Outputsconf#outputs.conf.example
We use index discovery for the set of indexers that I need the pass4symm key (a different instance of Splunk that I do not have control of )
My heavy forwarder also sends data to my Splunk instance which does not use the pass4symm key.
but every so often something will change the pass4key in the stanza back to the servers default pass4 key
That setting should not change on its own. Are those configurations being deployed by a Deployment Server? If so, are you changing the pass4SymmKey in the HF or the DS?
Also, if you know the list of indexers of the instances you don't have access to, you can setup a group which does not use the pass4SymmKey. The pass4Symm key is used for the HF connect to the Cluster Manager to get a list of the available indexers and not to actually send the data.
so if I remove the Indexer discovery then the pass4key will not matter ?