System Administration > Monitoring > Logs > Audit Logs

Collect audit logs from registered manager nodes

This API is executed on a manager node to display audit logs from all nodes
inside the management plane cluster. An audit log collection will be
triggered if the local master audit log is outdated.

Request:

Method:
POST
URI Path(s):
/api/v1/administration/audit-logs
Request Headers:
n/a
Query Parameters:
AuditLogQueryParameters+
Request Body:
AuditLogRequest+

Example Request:

POST https://<nsx-mgr>/api/v1/administration/audit-logs?page_size=1 { "log_age_limit": 1, "log_filter": "", "log_filter_type": "TEXT" }

Successful Response:

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

Example Response:

{ "last_full_sync_timestamp": "2017-12-13T19:23:57.042633Z", "page_cursor": "1457", "result_count": 1, "results": [ { "appname": "NSX", "facility": 22, "full_log": "<182>1 2017-12-11T19:51:39.819Z junjiex-nsxmanager-sb-12479759-1-test7 NSX - SYSTEM [nsx@6876 audit=\"true\" comp=\"nsx-manager\" subcomp=\"manager\"] UserName:'[email protected]', ModuleName:'ACCESS_CONTROL', Operation:'LOGIN', Operation status:'success'", "hostname": "junjiex-nsxmanager-sb-12479759-1-test7", "message": "UserName:'[email protected]', ModuleName:'ACCESS_CONTROL', Operation:'LOGIN', Operation status:'success'", "msgid": "SYSTEM", "priority": 6, "procid": "-", "struct_data": { "audit": "true", "comp": "nsx-manager", "subcomp": "manager" }, "timestamp": "2017-12-11T19:51:39.819Z", "version": "1" } ] }

Required Permissions:

read

Feature:

system_log

Additional Errors: