Under /opt/splunkforwarder/etc/system/local/server.conf , we have used the env variable $INSTANCE_ID .
[general]
serverName = $INSTANCE_ID
We then verified that we got the right results by using the command:
./splunk show servername
This then showed the correct id we were looking for. However, when we go to start Splunk using ./splunk start OR ./splunk to restart it will then show it's started.
Right after it shows it's started, I attempt to verify it's running by using ./splunk status . This shows us that the service did not in fact start, and it still shows splunkd is not running .
Why is this?
We verified that if we hard code the result into the servername in server.conf , the service does in fact start. But, for some reason, by using the env variable something is keeping Splunk from running.
Any help on this would be great!
... View more