Enabling logging on DFW rules in NSX Data Center can be beneficial for monitoring and troubleshooting network traffic. However, enabling logging on all DFW rules can potentially impact the performance of ESXi hosts due to the additional overhead introduced by increased CPU usage, memory consumption, and disk I/O. It can also cause the NSX services on the host to go down. This article addresses common concerns and provides guidance on the potential impacts and best practices for enabling logging on DFW rules.
The potential performance impact arises from the additional processing required to log each traffic event that matches a DFW rule. When logging is enabled for a large number of DFW rules, especially in environments with high traffic volume, the ESXi hosts may experience increased CPU and memory usage, as well as increased disk I/O, which could affect overall system performance.
/var/log/dfwpktlogs.log
file to track the number of DFW log messages generated./policy/api/v1/infra/domains/<domain-id>/security-policies
. Explore scripting options such as PowerShell for further automation.