Created on
10-16-2024
08:33 AM
Edited on
10-16-2024
11:30 PM
By
Jean-Philippe_P
Description | This article describes how to use the automation-stitch functionality to send an alert e-mail every time changes are made by an administrator, along with details of changes made. If necessary, this can assist audits in retracing steps and rolling back the settings. |
Scope | FortiGate. |
Solution |
Once the administrator presses Apply in the GUI or enters end/next in the CLI, the stitch will be triggered immediately upon making any changes. The attribute configured and object attribute configured are the log ids 44546 and 44547 in the GUI. Log ID 32102 (LOG_ID_CHG_CONFIG), which is pre-configured on Automation Stitch Trigger, only notifies that an admin has changed the configuration but does not show the specific parameters or attributes that changed. In addition, this log will only be triggered after the admin logs out from the FortiGate. Steps that can be followed to set:
config system automation-trigger edit "Config_Changes" set event-type event-log set logid 44546 44547 next end
config system automation-action edit "Config_Changed_Email" set description '' set action-type email set forticare-email disable set email-to "example@gmail.com" set email-from '' set email-subject "%%log.logdesc%%" set minimum-interval 0 set message "%%log%%" set replacement-message disable next end
config system automation-stitch edit "Config_Changed_with_details" set trigger "Config_Changes" config actions edit 1 set action "Config_Changed_Email" set required enable next end next end
The following logs should appear in the 'System Events' logs following creation, once the trigger is triggered: The first example is for the Attribute configured (44546) and the second log is for the Object attribute configured (44547):
Choose the log and select Details to get additional information about this record:
date=2024-10-12 time=14:39:34 eventtime=1728769174898798965 tz="-0700" logid="0100044546" type="event" subtype="system" level="information" vd="root" logdesc="Attribute configured" user="admin" ui="GUI(172.30.184.52)" action="Edit" cfgtid=128123256 cfgpath="system.settings" cfgattr="gui-load-balance[disable->enable]" msg="Edit system.settings " |
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.