Skip to main content
hjezzapaula
Staff
Staff
March 5, 2026

Technical Tip: Automation stitch to monitor specific administrator login & logout events and configuration changes

  • March 5, 2026
  • 0 replies
  • 315 views
Description This article describes how to create an automation stitch to receive notifications for specific administrator login & logout events and configuration changes where the admin account was created for a specific purpose. As well as to avoid a flood of email notifications from other administrator account system logs that do not need monitoring.
Scope FortiGate.
Solution

Create an automation stitch trigger with an additional user field filter. 

 

GUI -> Security Fabric -> Automation -> Trigger -> Create New -> FortiOS Event Log.

 

admin user name.png

 

CLI:

 

config system automation-trigger
    edit "Admin_Monitor"
        set event-type event-log
        set logid 32001 32003 32102 44547
            config fields
                edit 1
                    set name "user"
                    set value "AdminUsername"      <------------ Replace with the admin username to monitor.
                next
            end
    next
end

 

Create an automation stitch action.

GUI -> Security Fabric -> Automation -> Action -> Create New -> Email.

 

action.png


CLI:

 

config system automation-action
    edit "Admin_Notify"
        set action-type email
        set email-to "mycorporate@mytestdomain.com"
        set email-subject "Admin Notification"
    next
end

 

Create the automation stitch.

GUI -> Security Fabric -> Automation -> Stitch -> Create New.

 

stitch.png

 

CLI:

 

config system automation-stitch
    edit "Admin_Notify"
        set trigger "Admin_Monitor"
            config actions
                edit 1
                    set action "Admin_Notify"
                    set required enable
                next
            end
    next
end

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!