FortiAnalyzer
FortiAnalyzer can receive logs and Windows host events directly from endpoints connected to EMS, and you can use FortiAnalyzer to analyze the logs and run reports.
dvelazquez
Staff
Staff
Article Id 398562
Description This article describes how to create an event handler based on FortiAnalyzer’s Local Event Logs to alert the network admin. In this example, the event handler will send an alert email to the network admin if FortiAnalyzer does not receive logs from FortiGates.
Scope FortiAnalyzer.
Solution
  1. Configure the SMTP server under System Settings -> Advanced -> SMTP Server and test validity.

 

dvelazquez_0-1750980465428.png

 

  1. Go to System Settings -> Event Log and search for ‘Warning’ Level log, with the description 'Device Offline'.

 

dvelazquez_1-1750980465426.png

 

dvelazquez_2-1750980465427.png

 

Search for the keywords 'Did not receive any log from device' from the Message field (msg) in the Event Log.

 

  1. Go to 'root' ADOM, create an Event Handler, and an alert. Under Filters, select Level (Priority) Equal To ‘Warning’ and use Generic Text Filter (msg~'Did not receive any log from device'), as illustrated below:

 

dvelazquez_3-1750980465428.png

 

Note:

If FortiAnalyzer has ADOM enabled, the ‘Local Device’ option under Event Handler -> Devices will only be available in the 'root' ADOM. Configure Notifications -> Send Alert Email to receive the alert email:

 

dvelazquez_4-1750980465429.png

 

  1. Test the result. Example of an alert email received by the network admin when FortiGate stops sending logs to FortiAnalyzer:

 

dvelazquez_5-1750980465429.png

 

Note:

The following commands on the FortiAnalyzer will provide more information regarding the SMTP client application.

 

diagnose debug application fazmaild 8

diagnose debug timestamp enable

diagnose debug enable 

 

Related articles:

Technical Tip: How to configure an Event Handler with a generic text filter

Technical Tip: Use of Operators in Event Handler General Filter (syntax)

Technical Tip: How to set up Email Notifications with notification.fortinet.net 
Technical Tip: How to create Event Handler for FortiAnalyzer Local Events