POST /api/v1/administration/audit-logs API is invoked periodically against the NSX Manager. This can be validated from the /var/log/nvpapi/api_access.log file on the NSX Manager/tmp directory has reached 100% utilization, and the /var/log directory is at 90% capacity/var/log utilization returns to normal after a few minutes df -h command reports /tmp as 100% fulldu -sh /tmp/* on the NSX Manager node, a large file named nsx_audit_########-####-####-####-###########.log is identified as consuming significant disk space.root@nsxmgr:~# du -sh /tmp/*4.0K /tmp/appliance_form_factor68K /tmp/hsperfdata_corfu36K /tmp/hsperfdata_nsx36K /tmp/hsperfdata_nsx-cbm36K /tmp/hsperfdata_nsx-idps36K /tmp/hsperfdata_nsx-messaging68K /tmp/hsperfdata_nsx-replicator36K /tmp/hsperfdata_nsx-search4.0K /tmp/hsperfdata_root36K /tmp/hsperfdata_ucminv36K /tmp/hsperfdata_uphc36K /tmp/hsperfdata_uproton36K /tmp/hsperfdata_uproxy36K /tmp/hsperfdata_uuc4.0K /tmp/livetrace4.0K /tmp/node_stat.txt3.7G /tmp/nsx_audit_########-####-####-####-###########.log4.0K /tmp/pktcap4.0K /tmp/snap-private-tmp8.0K /tmp/systemd-private-#############################-ntp.service-FTGyUm8.0K /tmp/systemd-private-#############################-systemd-logind.service-zB1cQj8.0K /tmp/systemd-private-#############################-systemd-resolved.service-62GMxn8.0K /tmp/systemd-private-#############################-systemd-timedated.service-xPWlDo0 /tmp/tmpwxalkxn##########################################################4.0K /tmp/upgrade_time_estimation.json4.0K /tmp/upgrade_troubleshooting8rx288ux4.0K /tmp/upgradecjl2qk124.0K /tmp/vmware-root_1239-4248614932VMware NSX
Repeated POST /api/v1/administration/audit-logs calls created temporary files named nsx_audit_########-####-####-####-###########.log in the /tmp directory on the NSX Manager node. This led to /tmp filling up.
This is expected behavior, and the NSX engineering team is looking into ways to improve it so that users don’t experience /tmp filling up.
To resolve the issue and clear the /tmp directory, follow one of the workarounds listed below.
Workaround-1:
Truncating the log file to zero using the below command below will help reduce /tmp disk utilization:truncate -s 0 /tmp/<> <<<<< Replace the file name before running the commandnsx_audit_########-####-####-####-###########.log
Workaround-2:
Reboot the NSX Manager node to clear the /tmp directory and reduce disk utilization.
Note: POST /api/v1/administration/audit-logs API is executed on a NSX manager node to display audit logs from all manager nodes inside the management plane cluster.
Reference: Collect audit logs from registered manager nodes.
If the above steps in this KB do not resolve the issue, raise a support ticket with Broadcom support selecting NSX as the product.
Handling Log Bundles for offline review with Broadcom support.