You can run a syslog agent such as rsyslog or syslog-ng in a container to send logs from NCP and related components to a syslog server.
The following methods are recommended. For more information about logging in Kubernetes, see https://kubernetes.io/docs/concepts/cluster-administration/logging.
- Create a sidecar container that runs in the NCP or the nsx-node-agent pod.
- Run a DaemonSet replica on every node.