System Administration >
Configuration
>
Fabric
>
Nodes
>
Logs
Read node log properties
For a single specified log file, lists the filename, file size, and
last-modified time.
Request:
Method:
GET
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/logs/{log-name}
/api/v1/cluster/{cluster-node-id}/node/logs/{log-name}
/api/v1/node/logs/{log-name}
Request Headers:
Query Parameters:
n/a
Request Body:
n/a
Example Request:
GET https://<nsx-mgr>/api/v1/node/logs/syslog
Successful Response:
Response Code:
200 OK, 206 Partial Content
Response Headers:
Content-type: application/json
Content-type: application/octet-stream
Response Body:
NodeLogProperties
+
NodeLogProperties
(
schema
)
Name
Description
Type
Notes
_links
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST.
array of
ResourceLink
Readonly
_schema
Schema for this resource
string
Readonly
_self
Link to this resource
SelfResourceLink
Readonly
last_modified_time
Last modified time expressed in milliseconds since epoch
EpochMsTimestamp
Readonly
log_name
Name of log file
string
Readonly
log_size
Size of log file in bytes
integer
Readonly
Example Response:
{ "last_modified_time": 1442258255032, "log_name": "syslog", "log_size": 224075 }
Required Permissions:
read
Feature:
system_log
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable