Technical Tip: FortiAnalyzer uses webhook to send alert to Webhook site
Description
Â
This article describes how to send an alert message from FortiAnalyzer to a Webhook site.
Â

Â
Scope
Â
FortiAnalyzer.
Â
Solution
Â
When accessing the webhook site, it will generate a unique URL, as is generally the case.
Â

Â
Use the unique URL to put in under the Generic Connector URL value:
In v7.4.x, go to Fabric View -> Fabric Connectors -> Create New -> Generic Connector.
In v7.6.x, go to Incidents & Events -> Automation -> Active Connectors -> Create New -> Generic Connector.
Â

 
Other than the URL value, it is only mandatory to put in the following value:
Â
Protocol | HTTPS |
Port | 443 |
Method | POST |
Â
Authentication is not necessary for this setup and can be ignored, as HTTP bodies are optional for a meaningful message display in the alert.
The text output for the ${} sign can be replaced using other Configuring ITSM connectors in (Supported macros for the MS Teams Connector).
Â
Add the created webhook to the Notification Profile.
In v7.4.x, go to Incidents & Events -> Handlers -> Notification Profiles -> Create New.
In v7.6.x, go to Incidents & Events -> Event Handlers -> Notification Profiles -> Create New.
Â

Â
Create an event and add the notifications profile to it.
In v7.4.x, go to Incidents & Events -> Handlers -> Basic Handlers -> Create New.
In v7.6.x, go to Incidents & Events -> Event Handlers -> Event Handlers -> Create New.
Â

Â
Trigger the event and check if it is present in the Event Monitor and the webhook site.
Â

Â

Â
Notice: Alerts sent in JSON format using ITSM Connectors.
Â
Debug to see the output from the FortiAnalyzer to the connector after configuration:
Â
diagnose debug enable
diagnose debug timestamp enable
diagnose debug application fazsvcd 255
diagnose debug application faznotify 8Â
To disable the debugging:
Â
diagnose debug disableÂ
If the connection to the Webhook site is flapping, run these debug commands for 30 to 45 minutes and share the results with Support:
Â
diagnose debug application faznotify 8
diagnose debug timestamp enable
diagnose debug enableÂ
Afterwards, obtain the RC code:
diagnose debug application faznotify 0Â
To disable the debug process:
Â
diagnose debug disableÂ
After disabling the debug processes, capture the output of the following:
diagnose test application faznotify 2
diagnose test application faznotify 3 * *
diagnose test application faznotify 1 (show the daemon info)
diagnose test application faznotify 2 (show faznotify statistics)
diagnose test application faznotify 20 (show the count of active channels at that moment)
diagnose test application faznotify 3 <adom> <webhook-name> (show statistics of the specific connector)Â
Attach the debug output to a new ticket through the support portal:Â Ticketing.
Â
Related documents:
