System Administration > Configuration > Fabric > Nodes > Logs

List available node logs

Returns the number of log files and lists the log files that reside on the
NSX virtual appliance. The list includes the filename, file size,
and last-modified time in milliseconds since epoch (1 January 1970) for each
log file. Knowing the last-modified time with millisecond accuracy since
epoch is helpful when you are comparing two times, such as the time of a
POST request and the end time on a server.

Request:

Method:
GET
URI Path(s):
/api/v1/node/logs
/api/v1/transport-nodes/<transport-node-id>/node/logs
/api/v1/cluster/<cluster-node-id>/node/logs
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

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

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
NodeLogPropertiesListResult+

Example Response:

{ "result_count": 70, "results": [ ... { "last_modified_time": 1442255851363, "log_name": "kern.log", "log_size": 175171 }, ... { "last_modified_time": 1442257962797, "log_name": "syslog", "log_size": 221701 }, ... ] }

Required Permissions:

read

Feature:

system_log

Additional Errors: