FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Mohammed_Feroz
Article Id 301195
Description This article describes how to identify IPsec tunnel uptime both in the GUI and CLI.
Scope FortiGate.
Solution

IPsec tunnel uptime, or the time when the Phase 1 connection was created, can be viewed with the following methods:

 

GUI:

 

ipsec1.png

Navigate to Dashboard -> Network -> IPsec widget -> Right-click on the available columns and add the 'created' field as shown in the above  screenshot.


CLI:

 

The same information can be viewed in the command output as seen in the below screenshot:

 

ipsec2.png

diag vpn ike gateway list <- For all tunnels.
diag vpn ike gateway list name "nameofthetunnel" <- For a specific tunnel.