Configuring VDOMs on individual FPMs to send logs to different FortiAnalyzers
The following steps describe how to override the global FortiAnalyzer configuration for individual VDOMs on individual FPMs. The example shows how to configure the root VDOMs on the each of the FPMs in a FortiGate-7040E to send log messages to different FortiAnalyzers. Each root VDOM connects to FortiAnalyzer through a root VDOM data interface. This procedure assumes you have the following two FortiAnalyzers:
FortiAnalyzer IP address |
Intended use |
---|---|
172.25.176.120 |
The root VDOM on the FPM in slot 3 sends log messages to this FortiAnalyzer. |
172.25.176.130 |
The root VDOM on the FPM in slot 4 sends log messages to this FortiAnalyzer. |
This configuration is only supported for |
-
Log into the primary FIM CLI using the FortiGate-7040E management IP address.
-
Use the following command to prevent the FortiGate-7040E from synchronizing FortiAnalyzer override settings between FPMs:
config global
config system vdom-exception
edit 1
set object log.fortianalyzer.override-setting
end
end
-
Log into the CLI of the FPM in slot 3:
For example you can start a new SSH connection using the special management port for slot 3:
ssh <management-ip>:2203
Or you can use the following command from the global primary FIM CLI:
execute load-balance slot manage 3
The system will log you out of the CLI of the FPM in slot 3 in less than 60 seconds. You should have enough time to complete the following steps. If you run out of time on your first attempt, you can keep trying until you succeed.
-
Access the root VDOM of the FPM in slot 3 and enable overriding the FortiAnalyzer configuration for the root VDOM.
config vdom
edit root
config log setting
set faz-override enable
end
A message similar to the following appears; which you can ignore:
Please change configuration on FIMs. Changing configuration on FPMs may cause confsync out of sync for a while.
-
Configure FortiAnalyzer override to send log messages to a FortiAnalyzer with IP address 172.25.176.120:
config log fortianalyzer override-setting
set status enable
set server 172.25.176.120
end
You should see messages similar to the following on the CLI:
Please change configuration on FIMs. Changing configuration on FPMs may cause confsync out of sync for a while.
The Serial Number for FortiAnalyzer is not entered.
In order to verify identity of FortiAnalyzer serial number is needed.
If serial number is not set, connection will be set as unverified and
access to local config and files will be accessible only with user name/password.
FortiGate can establish a connection to obtain the serial number now.Do you want to try to connect now? (y/n)y
-
Enter Y to confirm the serial number. Messages similar to the following should appear:
Obtained serial number from X509 certificate of Fortianalyzer is: <serial>
Serial number from certificate MUST be the same as serial number observed in Fortianalyzer.
If these two serial numbers don't match, connection will be dropped.
Please make sure the serial numbers are matching.
In case that Fortianalyzer is using a third-party certificate, certificate verification must be disabled.
Do you confirm that this is the correct serial number? (y/n)y
-
Enter Y to confirm the serial number.
- Use the
exit
command to log out of the FPM CLI. Otherwise you are logged out of the FPM CLI in less than a minute - Log into the CLI of the FPM in slot 4.
-
Access the root VDOM of the FPM in slot 4 and enable overriding the FortiAnalyzer configuration for the root VDOM.
config vdom
edit root
config log setting
set faz-override enable
end
A message similar to the following appears; which you can ignore:
Please change configuration on FIMs. Changing configuration on FPMs may cause confsync out of sync for a while.
-
Configure FortiAnalyzer override to send log messages to a FortiAnalyzer with IP address 172.25.176.130:
config log fortianalyzer override-setting
set status enable
set server 172.25.176.130
end
Messages appear like they did when you were logged into the FPM in slot 3 and you can confirm the FortiAnalyzer serial number.
-
Use the
exit
command to log out of the FPM CLI. Otherwise you are logged out of the FPM CLI in less than a minute.