Is there any way to find out the port on which Splunk is set up programmatically using Splunk Java SDK? Basically to read the entry from $SPLUNK_HOME/etc/system/local/web.conf?
The Java SDK has a class named "Settings" with methods to retrieve host and port values, among other settings.
Or use REST directly, as Rich said. Many ways to skin a cat. 🙂
The Java SDK has a class named "Settings" with methods to retrieve host and port values, among other settings.
Or use REST directly, as Rich said. Many ways to skin a cat. 🙂
Use the SDK to send the REST command /services/configs/conf-web