My app is sending events to a TCP port that Splunk is monitoring. Rather than make the port number part of the configuration of my app, I am hoping that I can ask Splunk for available ports.
Is this doable? How might I do it?
This is not related to the Splunk index. However, you could write some code using the Splunk API to query a Splunk server (or servers) for the list of TCP or UDP ports that Splunk is currently monitoring.