NSX Cloud supports syslog forwarding.

About this task

You can enable syslog forwarding for Distributed Firewall (DFW) packets on NSX-managed VMs.

Do the following:

Procedure

  1. Log in to CGW using the jump host.
  2. Type the nsxcli command to open NSX-T CLI.
  3. Type the command to enable DFW log forwarding:
    • nsx-public-cloud-gateway> set gw-controller vm-log-forwarding enabled 
      

    After this is set, NSX agent DFW packet logs are available under /var/log/syslog on CGW.

  4. To enable log forwarding per VM, enter the following command:
    • nsx-public-cloud-gateway> set gw-controller vm-log-forwarding enabled <vm-id>