DFWPKT Logs not being forwarded to Aria Logs with Log Label set to a character length greater than 39 characters.
book
Article ID: 371438
calendar_today
Updated On:
Products
VMware vDefend Firewall
Issue/Introduction
In NSX versions prior to 3.2.1.1, the character limit for log labels in Distributed Firewall (DFW) rules was 31 characters. However, starting from version 3.2.1.1, this limit has been increased to 39 characters.
While the dfwpktlogs.log on ESXi hosts will truncate log labels exceeding 39 characters, Aria Logs do not display this truncation.
Environment
VMware NSX
Cause
From NSX version 3.2.1.1 onwards, the log label character limit in DFW logs was extended to 39 characters from 31 characters. While the NSX Manager allows configuring longer labels, the dataplane truncates them to 39 characters, which is then reflected in the ESXi DFWPKT logs and forwarded to Aria logs. This discrepancy can cause confusion if the log label exceeds the 39-character limit, resulting in truncated information in the logs.
This truncation occurs in the vsipfwlib component within the data plane. As a result, Aria logs and any syslog server will receive the truncated log labels, not the original longer labels
Resolution
To address this issue and ensure proper log analysis:
Use a shorter log label: Ensure that the log label configured in NSX Manager is 39 characters or fewer.
Filter logs by Rule ID: If the log label is longer than 39 characters, filter logs using the associated rule ID. The truncated label will still appear in the logs, but the rule ID ensures accurate identification of firewall actions.
Verify logs in Aria: Logs with truncated labels will still be forwarded to Aria, and the 39-character limit should be reflected in the forwarded logs. To resolve the issue of not being able to view the logs in Aria, modify the pre-set log filters to use shorter log labels or filter by rule ID instead. This will allow you to see the truncated log labels, which are indeed being captured in the ESXi DFWPKT logs and forwarded to Aria logs, with the expected 39-character limit.