You can perform below CLI commands to configure Ubiquiti USG Pro 4:
set system flow-accounting interface eth1 set system flow-accounting netflow server 192.168.1.65 port 6500 set system flow-accounting netflow version 5 set system flow-accounting netflow sampling-rate 1 set system flow-accounting netflow timeout max-active-life 1 commit