While trying to configure syslog server, the Rest API POST command works for IP address, however, when specifying the port number with the IP address the following error is returned:
"Invalid value for identifier server."
Command used for POST:
https://10.10.10.10/api/v1/configuration/system/log/events-log-settings/syslog/localhost2/syslog-servers/syslog-server
{ "client-cert": "Select Client Cert", "communication-type": "udp", "facility": "local-zero", "filter": "Standard", "server": "1.2.3.4:567" }
Resulting error:
{
"result": {
"errors": [
{ "message": "[/system/log/events-log-settings/syslog[node=localhost2]/syslog-servers/syslog-server
[server=,facility=local-zero,filter=###invalid###]/server] Invalid Address: 10.9.8.7:414" }
,
{ "message": "[/system/log/events-log-settings/syslog[node=localhost2]/syslog-servers]
Invalid value for identifier server" }