Forum Discussion
Wiehann_Kotze_3
Nimbostratus
Aug 07, 2017REST API call to set remote syslog server
I am trying to use the REST API to set the remote syslog details, but can't get the correct syntax.
The config looks like this in tmsh.
root@(F5CBLB)(cfg-sync Standalone)(Active)(/Common)(tmos.s...
Satoshi_Toyosa1
Aug 28, 2017Ret. Employee
The following curl example is equivalent to
modify sys syslog remote-servers add { sat { host 192.168.184.80 remote-port 514 }}.
curl -sku admin: https:///mgmt/tm/sys/syslog \
-H "Content-type: application/json" -X PATCH \
-d'{"remoteServers":[ {"name":"sat","host":"192.168.184.80","remotePort":514} ]}'
To list the remote servers, run the following (equivalent to
tmsh list sys syslog remote-servers😞
curl -sku admin: https:///mgmt/tm/sys/syslog?\$select=remoteServers
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
