You can use the GetRemoteLoggingHosts method to get the current list of log servers.
This method has no input parameters.
This method has the following return value:
Name | Description | Type |
---|---|---|
remoteHosts | List of IP address and port information about hosts configured to receive forwarded logging information. | loggingServer array |
Requests for this method are similar to the following example:
{ "id": 3386609, "method": "GetRemoteLoggingHosts", "params": {} }
This method returns a response similar to the following example:
{ "id": 3386609, "result": { "remoteHosts": [ { "host": "172.16.1.20", "port": 10514 }, { "host": "172.16.1.25" } ] } }