Replace the FortiManager device
If the FortiAnalyzer feature set is enabled and you need to move logs to a new FortiManager device, use log aggregation. If the FortiManager being replaced is the primary, after replacing it, use execute fgfm reclaim-dev-tunnel
to force FortiGates to connect to the new FortiManager.