Skip to main content
Mrinmoy
Staff
Staff
Nov 24, 2023 6:08 PM UTC

Technical Tip: Configure an automation stitch to get an email alert for SSL VPN login failures

Description This article describes how to configure an automation stitch to provide email alerts when SSL VPN login failures appear in the logs.
Scope FortiOS 6.4 or above.
Solution

Create an Automation stitch under Security Fabric -> Automation -> Stitch -> Create New.

 

1.png

 

Give it the name and trigger shown in the screenshot below:

 

2.png

 

Configure the action in the screenshot below:

 

3.png

 

Next, test the stitch by entering the wrong user ID or password. Check the status from the firewall and check for an email.

 

4.png

 

The CLI part after configuration is as follows:

 

Stitch:

 

config system automation-stitch

edit "SSL VPN Login-Failure"

set trigger "SSL-VPN-Login"

config actions

edit 1

set action "SSL-VPN-Failed"
set required enable

next

end

next

end

 

Trigger:

 

config system automation-trigger

edit "SSL-VPN-Login"

set event-type event-log
set logid 39426

next

end

 

Action:

 

config system automation-action

edit "SSL-VPN-Login-Failed"

set action-type email
set email-to <email address> <----- For example: example@fortinet.com.
set email-subject "SSL-VPN-Login-Failed"

next

end

 

Log: The email will contain the following log:

date=2023-11-24 time=09:39:36 devid="FGT61FTK22059174" devname="FGT" eventtime=1700847576403329440 tz="-0800" logid="0101039426" type="event" subtype="vpn" level="alert" vd="root" logdesc="SSL VPN login fail" action="SSL-VPN-Failed" tunneltype="ssl-web" tunnelid=0 remip=209.87.240.230 srccountry="Canada" user="user01" group="N/A" dst_host="N/A" reason="sslvpn_login_permission_denied" msg="SSL user failed to logged in"

 

Note:
If the automation stitch is triggered but fails to receive an email alert, refer to Troubleshooting Tip: Email alert or contact Fortinet Support for assistance.
 

Related articles:

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024