Configuring syslog server for VMware NSX for vSphere 6.x controllers
book
Article ID: 341222
calendar_today
Updated On:
Products
VMware NSXVMware vSphere ESXi
Issue/Introduction
This article provides information about the supported method for configuring syslog server for VMware NSX for vSphere 6.x controllers.
Environment
VMware NSX for vSphere 6.2.x VMware NSX for vSphere 6.0.x VMware NSX for vSphere 6.1.x
Resolution
The only supported method on configuring the syslog server on the NSX controllers is through the NSX API.
Note: It is important that the encoding specified on the headers are configured with application/xml and not application/json. Specifying application/json may result in HTTP Status errors.
To configure the Syslog server:
Enabling or querying or disabling syslog On NSX Manager using NSX API
Working with Syslog Servers If you specify a syslog server, NSX Manager sends all audit logs and system events from NSX Manager to the syslog server.
Configure syslog servers
Request: PUT https://<nsxmgr-ip>/api/1.0/appliance-management/system/syslogserver Request Body <syslogserver> <syslogServer></syslogServer> <port></port> <protocol></protocol> </syslogserver>
Query syslog servers Retrieves syslog servers.
Request: GET https://<nsxmgr-ip>/api/1.0/appliance-management/system/syslogserver Response Body <syslogserver> <syslogServer></syslogServer> <port></port> <protocol></protocol> </syslogserver>