We covered Fortinet's regular NetFlow and Syslog configuration in a different blog post some time ago. For some Fortigates, there isn't a NetFlow option. Instead, there are only Sflow configuration options on the machines.
If you have missed the previous blog post, here is the link - Fortinet NetFlow and EventLog configuration.In the beginning, we need to configure the global options