This document serves as a technical reference for performing log-file analysis via the API and CLI. It covers essential workflows including:
Authenticating and querying log endpoints via REST API.
Accessing archived or rotated logs that may not be visible through the standard management console. This guide is intended to assist in rapid live log-file view.
Using Command Line -
> get log-file <auth.log | controller | controller-error | http.log | kern.log | manager.log | node-mgmt.log | policy.log | syslog> followNote - If you run the command without the keyword "follow" it will show all the logs stored in the particular log-file. To see the current/live logs use the keyword "follow" at the end of command
Using API Call -
/api/v1/administration/audit-logs
/api/v1/administration/
/api/v1/administration/auth.log
/api/v1/administration/controller
/api/v1/administration/controller-error
/api/v1/administration/http.log
/api/v1/administration/kern.log
/api/v1/administration/manager.log
/api/v1/administration/node-mgmt.log
/api/v1/administration/policy.log
/api/v1/administration/syslog.If NSX-T fails to access or write messages to a log file, an alarm will be generated. The possible errors are:
Please refer the techdoc for more info - https://techdocs.broadcom.com/us/en/vmware-cis/nsx/nsxt-dc/3-1/administration-guide/operations-and-management/log-messages-and-error-codes.html