System Administration > Configuration > Fabric > Nodes > Logs

Read node log contents

For a single specified log file, returns the content of the log file.
This method supports byte-range requests. To request just a portion of a
log file, supply an HTTP Range header, e.g. "Range: bytes=<start>-<end>".
<end> is optional, and, if omitted, the file contents from start to the
end of the file are returned.'

Request:

Method:
GET
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/logs/{log-name}/data
/api/v1/cluster/{cluster-node-id}/node/logs/{log-name}/data
/api/v1/node/logs/{log-name}/data
Request Headers:
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/node/logs/syslog/data

Successful Response:

Response Code:
200 OK, 206 Partial Content
Response Headers:
FileRequestHeaders
Content-type: application/octet-stream
Response Body:
n/a

Example Response:

2015-09-14T19:35:23.688Z 10.160.30.117 NSX - - - UserName:'[email protected]', ModuleName:'ACCESS_CONTROL', Operation:'LOGIN', Operation status:'success' 2015-09-14T19:35:23.817Z nsx-manager NSX - - - "GET /api/v1/node/status HTTP/1.1" 200 2550 "" "" 0.123531

Required Permissions:

read

Feature:

system_log

Additional Errors: