Configuring syslog on NSX-T node using cli fails "an error occurred while adding the logging-server"
search cancel

Configuring syslog on NSX-T node using cli fails "an error occurred while adding the logging-server"

book

Article ID: 317911

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Symptoms:
  • Syslog was configured in NSX-T using the System - Fabric - Profiles - Node Profiles
  • The Node Profile was then removed and cli was used to add the syslog configuration on the nodes.
  • When issuing a syslog configuration command such as:
set logging-server 10.10.10.1 proto udp level info structured-data audit="true"
  • You receive the following error:
"% an error occurred while adding the logging-server"
  • In the node logs we see the following error:
[nsx@6876 comp="nsx-manager" subcomp="cli" username="admin" level="ERROR"
errorCode="('CLI110',)"] Error setting logging server: {'error_code': 36125, 'error_message': 'Error reading syslog exporter properties.','module_name': 'node-services'}
  • Central config is enabled on the nodes:
get node central-config


Environment

VMware NSX-T Data Center
VMware NSX-T

Cause

When node central config is enabled (it is enabled by default on all nodes), the local configuration will be over written on the node at a frequency up to every 4 hours, this is expected behavior.
This issue occurs due to central-config getting stuck in a loop checking desired and realized state.

Resolution


This issue is resolved in NSX-T Data Center 3.2.1 available at VMware Downloads.
https://customerconnect.vmware.com/downloads/info/slug/networking_security/vmware_nsx_t_data_center/3_x

Workaround:
As admin user, disable central-config on the nodes (has to be done manually on each node) and then you can apply syslog configuration on the nodes, as this command will prevent the node from accepting the node profile central configuration:
set node central-config disabled
You can check the status using:
get node central-config
Details on setting syslog on NSX-T nodes can be found here:
https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.2/administration/GUID-B4AE1432-690E-480E-91C4-903C1E549C23.html