Created on 02-11-2024 06:09 AM Edited on 05-06-2024 02:25 AM By Jean-Philippe_P
This article describes creating a report to track VPN users' connection and disconnection times.
User |
VPN Status |
Time |
User a |
Connected |
2024-01-30 04:36 |
User a |
Disconnected |
2024-01-30 15:02 |
User b |
Connected |
2024-01-29 04:46 |
User b |
Disconnected |
2024-01-29 07:09 |
FortiAnalyzer.
SELECT
`user` AS "User",
(
CASE
WHEN `action` = 'tunnel-up' THEN 'Connected'
ELSE 'Disconnected'
END
) AS "VPN Status",
(
to_char(from_itime("itime"), 'YYYY-MM-DD HH24:MI')
) AS `Time Stamp`
FROM
$log
WHERE
$filter
AND (
(`action` = 'tunnel-up')
OR (`action` = 'tunnel-down')
)
GROUP BY
`Time Stamp`,
`action`,
`user`
ORDER BY
`user`,
`Time Stamp`
Related articles:
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 2024 Fortinet, Inc. All Rights Reserved.