Created on
07-04-2025
05:09 AM
Edited on
09-08-2025
06:03 AM
By
Jean-Philippe_P
This article describes how to configure an automation stitch using message filters derived from event logs.
FortiGate.
In the following example, an automation stitch is configured to monitor a specific BGP neighbor going down or up. When such an event occurs, an email notification is sent by filtering for the particular neighbor from the router event logs.
Step 1: Create an automation stitch:
Step 2: Create an Automation-trigger:
Step 3: Create an Automation Action.
Once configured, select 'OK' and verify the automation stitch.
CLI Reference:
config system automation-trigger
edit "automation-trigger"
set event-type event-log
set logid 20300
config fields
edit 1
set name "msg"
set value "*neighbor 10.10.10.3 Down*"
next
end
next
end
config system automation-action
edit "Email"
set action-type email
set email-to "abc@gmail.com"
set email-from "abcdef@abc.com"
set email-subject "%%log.logdesc%%"
set message "%%log%%"
next
end
config system automation-stitch
edit "automation-stich"
set trigger "automation-trigger"
config actions
edit 1
set action "Email Notification"
set required enable
next
end
end
Verification :
When a BGP neighborship goes down, the router event logs record a BGP down event. Subsequently, automation is triggered successfully. Verification is done in the GUI by checking the 'Trigger Count' and 'Last Triggered' fields.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.