Technical Tip: How to connect a FortiWeb to a FortiAnalyzer
Description
Â
This article describes how to connect FortiWeb to a FortiAnalyzer Device or VM.
Scope
FortiWeb and FortiAnalyzer.
Solution:
On the FortiWeb:Â
Configure FortiWeb with the FortiAnalyzer IP.
Go to Log & Report -> Log Policy -> FortiAnalyzer Policy.
Create a new policy.
Set Name.
Set FortiAnalyzer IP.
Select 'OK'.

Â
Use the FortiWeb CLI:
config log fortianalyzer-policy
  edit "0"
    set ip-address <FortiAnalyzer-IP>
  next
endÂ
Configure FortiAnalyzer Log Settings.
Go to Log & Report -> Log Config -> Global Log Settings.
Enable the FortiAnalyzer [Checkbox].
Specify 'Log Level' as 'Information'.
Specify 'FAZ' as the 'FortiAnalyzer Policy' (the name of the FortiAnalyzer policy created in the previous step).
Select 'Apply'.

Â
Using CLI:
Â
config log forti-analyzer
  set severity debug
  set fortianalyzer-policy 0
endÂ
On the FortiAnalyzer.
The FortiWeb can be added either to a Fabric ADOM or a dedicated FortiWeb ADOM (recommended).
Â
ADOM configuration.
Enable the ADOM.

Device registration.
Go to Root-ADOM -> Device Manager -> Unregistered device.

Â
After selecting 'OK', the device will be added, verified, and 'CLOSE' will be selected.

Log in to the FortiWeb ADOM:

There is another option to integrate FortiWeb with FortiAnalyzer.
Â
Creating New ADOM.
Go to System Settings -> ADOMs -> Create New.
Set Name.
Select Type: FortiWeb.
Keep all other settings with Default Values.
Select 'OK'.

Â
Change to the New FortiWeb ADOM to integrate FortiWeb.
Go to Dashboard -> Select the ADOM Button.Â

Select the New FortiWeb ADOM created.

Â
Configure FortiWeb in FortiAnalyzer -> Device Manager.
Go to Device Manager.
Select Add Device.

Â
Set Name.
Select Link Device by Serial Number.
Set the FortiWeb Serial Number.
Select the FortiWeb Device Model.
Select 'Next'.

Â
A New Database is created, and FortiWeb will be integrated.
Select 'Next' to finish.
Â

Â
It is possible to see the wrong Version and Model: it is normal, and FortiAnalyzer and FortiWeb need to complete the synchronization.

Â
Complete the configuration on FortiWeb, then after a few seconds, FortiWeb will connect to FortiAnalyzer and the correct information will become visible.

If the FortiWeb status appears as 'Down' in FortiAnalyzer (especially with FortiAnalyzer v7.4.8+), legacy authentication mode needs to be enabled:
FortiAnalyzer CLI:
config system log settings
set legacy-auth-mode enable
end