Suppress log lines from syslog on the NSX Manager appliances
search cancel

Suppress log lines from syslog on the NSX Manager appliances

book

Article ID: 326349

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

This KB highlight how to suppress log lines from syslog on the NSX Manager appliances.

Environment

VMware NSX 4.x
VMware NSX-T Data Center 3.x

Resolution

Workaround

Important note:

  • Ensure that an FTP backup is taken prior to making the change.
  • This workaround needs to be applied to all 3 NSX Manager appliances.
  • Should "unwanted" logs be noticed that are inexplicable or causing concern, please raise a support case with Broadcom Support. 

For more information, see Creating and managing Broadcom support cases.

To suppress log lines from syslog on the NSX Manager appliances edit the file /etc/rsyslog.d/40-suppress.conf and add the entry you would like to suppress.

For example you would like to suppress the following log entry:
nsx-mngr-01 NSX 1601 - [nsx@6876 comp="nsx-manager s2comp="nsx-net" tid="1710" level="WARN"] StreamConnection[91985 Error to tcp://127.0.0.1:4096 sid:-1] Error 111-Connection refused

 

  1. Make a backup of the /etc/rsyslog.d/40-suppress.conf file
    #cp /etc/rsyslog.d/40-suppress.conf /etc/rsyslog.d/40-suppress.conf.bak

  2. Edit (use vim) the file /etc/rsyslog.d/40-suppress.conf and add the following line a the bottom:
    :msg, contains, "tcp://127.0.0.1:4096" ~

  3. Restart the rsyslog service
    #/etc/init.d/rsyslog restart