Because I always forget them, here’s the commands:

esxcli system coredump network get
esxcli system coredump network set --interface-name vmk0 --server-ipv4 10.0.1.11 --server-port 6500
esxcli system coredump network set --enable true
esxcli system coredump network get
esxcli system coredump network check

esxcli system syslog config get
esxcli system syslog config set --loghost='tcp://10.0.1.11:514'
esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true
esxcli network firewall refresh
esxcli system syslog reload