Configuring a VMware NSX-T Device to Send Syslogs

SecureChange Requester This topic is intended for TOS Administrators.

Overview

Configure the NSX Manager to send change logs to SecureTrack to receive revisions when firewall rules are changed.

Syslog traffic must be configured to arrive to the TOS cluster that monitors the device - see Sending Additional Information via Syslog.

Define SecureTrack as a Syslog Server

  1. Login to the NSX Manager CLI.

  2. Run the following command:

    set logging-server <host>:514 proto udp level info messageid <messageid> [structured-data update="true"]

    Use the parameters as follows:

    Parameter Description
    <host> Host name or IP address of the SecureTrack server or Syslog-VIP
    <messageid> Use "FIREWALL" for imperative APIs, or "-" (dash) for declarative APIs
    structured-data (Optional) Recommended for enhanced log filtering and parsing

For more information, see official VMware documentation: Configure Remote Logging and Log Message IDs.

Configure ESXi to Send Syslogs

To receive firewall rule logs from NSX Distributed Firewall, you must also configure the underlying ESXi hosts to forward syslogs to SecureTrack.

ESXi CLI

  1. Connect to the CLI of the ESXi server.

  2. Enable the syslog service:

    esxcli network firewall ruleset set -r syslog -e true                        

  3. Set the syslog server (use the Syslog-VIP or external load balancer IP, depending on your TOS configuration):

    esxcli system syslog config set --loghost=udp://192.168.40.162:514
  4. Restart the syslog service:

    esxcli system syslog reload
ESXi can only send one type of syslog message to a single destination.

NSX UI (NSX 3)

Use the NSX UI to enable logging for individual Distributed Firewall rules.

  1. Click the Security tab at the top of the screen.

  2. Click Distributed Firewall under East West Security in the left navigation panel.

  3. Select a firewall rule you want to monitor.

  4. Click the settings (cogwheel) icon next to the rule.

    The Settings window opens.

  5. Turn on the Enable toggle next to Logging.

  6. Click Apply.

  7. Click Publish in the top right to apply the changes.