Created on
05-31-2022
05:42 AM
Edited on
11-23-2025
06:07 AM
By
Jean-Philippe_P
| Description | The article describes how to test an automation stitch configured to trigger on an event log. |
| Scope |
FortiGate. |
| Solution |
When an automation-stitch is configured to trigger on an event log, in the GUI, the test option is greyed out and not able to be used.
For example, the following stitch is configured to trigger on interface status changes:
config system automation-trigger set logid 20099 <----- Log ID for interface status changes. next end config system automation-action config system automation-stitch config actions edit 1 set action "Email Notification" set required enable next end next end To test the automation-stitch, use the following CLI command:
diagnose automation test[stitch name] [log]
For this test, it is also necessary to add a text log example to the end of the command to test if the stitch truly triggers, for example:
diagnose automation test interface "date=2022-05-24 time=12:29:26 eventtime=1653388166478984429 tz=\"+0200\" logid=\"0100020099\" type=\"event\" subtype=\"system\" level=\"warning\" vd=\"root\" logdesc=\"Interface status changed\" action=\"interface-stat-change\" status=\"UP\" msg=\"Link monitor: Interface dmz was turned up\" "
Results:
automation test is done. stitch:interface Note: If 'field filter' is configured in automation trigger, make sure the filter matches 'log field name', as the stitch will otherwise not be triggered. For more information, refer to FortiOS event log trigger. |
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.