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:
- Log in to CGW using the jump host.
- Type the nsxcli command to open NSX-T CLI.
- 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.
- To enable log forwarding per VM, enter the following command:
nsx-public-cloud-gateway> set gw-controller vm-log-forwarding enabled <vm-id>