Configure the NSX Controller instances for the management, compute and edge clusters to forward log information to vRealize Log Insight in Region A by using the NSX REST API. You can use a REST client, such as the RESTClient add-on for Firefox, to enable log forwarding.

On a Windows host that has access to your data center, install a REST client, such as the RESTClient add-on for Firefox.

1

Log in to the Windows host that has access to your data center.

2

In a Firefox browser, go to chrome://restclient/content/restclient.html.

3

Specify the request headers for requests to the NSX Manager. 

a

From the Authentication drop-down menu, select Basic Authentication

b

In the Basic Authorization dialog box, enter the following credentials, select Remember me and click Okay.

Setting

Value

User name

admin

Password

mngnsx_admin_password

compnsx_admin_password

The Authorization:Basic XXX header appears in the Headers pane.

c

From the Headers  drop-down menu, select Custom Header

d

In the Request Header dialog box, enter the following header details and click Okay.

Request Header Attribute

Value

Name

Content-Type

Value

application/xml

The Content-Type:application/xml header appears in the Headers pane.

4

Contact the NSX Manager to retrieve the IDs of the associated NSX Controllers.

a

In the Request pane, from the Method drop-down menu, select GET.

b

In the URL text box, enter the following URL, and click Send.

NSX Manager

URL

NSX Manager for the management cluster

https://mgmt01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller

NSX Manager for the shared edge and compute cluster

https://comp01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller

The RESTClient sends a query to the NSX Manager about the installed NSX controllers.

c

After the NSX Manager sends a response back, click  the Response Body (Preview)  tab under Response.

The response body contains a root <controllers> XML element that groups the details about the three controllers that form the controller cluster. 

d

Within the <controllers> element, locate the <controller> element for each controller and write down the content of the <id> element.

Controller IDs have the controller-id format where id represents the sequence number of the controller in the cluster, for example, controller-2.

e

Repeat the steps for the other NSX Manager.


5

For each NSX Controller, send a request to configure vRealize Log Insight as a remote syslog server.

a

In the Request pane, from the Method drop-down menu, select POST, and in the URL text box, enter the following URL.

NSX Manager

NSX Controller in the Controller Cluster

POST URL

NSX Manager for the management cluster

NSX Controller 1

https://mgmt01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-1/syslog

NSX Controller 2

https://mgmt01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-2/syslog

NSX Controller 3

https://mgmt01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-3/syslog

NSX Manager for the shared edge and compute cluster

NSX Controller 1

https://comp01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-1/syslog

NSX Controller 2

https://comp01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-2/syslog

NSX Controller 3

https://comp01nsxm01.sfo01.rainpole.local/api/2.0/vdn/controller/controller-3/syslog

b

In the Request pane, paste the following request body in the Body text box and click Send.

<controllerSyslogServer>
   <syslogServer>vrli-cluster-01.sfo01.rainpole.local</syslogServer>
   <port>514</port>
   <protocol>UDP</protocol>
   <level>INFO</level>
</controllerSyslogServer> 
c

Repeat the steps for the next NSX Controller.

6

Verify the syslog configuration on each NSX Controller. 

a

In the Request pane, from the Method drop-down menu, select GET, in the URL text box, enter the controller-specific syslog URL from the previous step, and click theSEND button.

b

After the NSX Manager sends a response back, click the Response Body (Preview) tab under Response

The response body contains a root <controllerSyslogServer> element, which represents the settings for the remote syslog server on the NSX Controller.

c

Verify that the value of the <syslogServer> element is vrli-cluster-01.sfo01.rainpole.local. 

d

Repeat the steps for the next NSX Controller.

7

Verify the syslog configuration on each NSX Controller.