Skip to main content
FG_User_24
New Member
Jun 5, 2025 2:50 AM UTC
Question

FortiGate restarted - how to find the logs

Hi all,

 

A FortiGate firewall 

Restarted around couple of weeks ago. 

Is it possible to find why it was restarted? 

I know it wasn't done manually and there was no power outage. 

 

Thanks.

3 replies

Toshi_Esumi
SuperUser
SuperUser
Jun 5, 2025 3:07 AM UTC

If you are doing only "memory" logging, it's gone when it rebooted. If it's a model with HDD/SSD and you are doing "disk" logging, everything should be still there unless it ran over the capacity. If you are sending log to a "syslog" server or FortiAnalizer outside of the unit, of course it's there.

At least one thing you should check if all logs are gone is "crashlog" with "diag debug crashlog read". There might be a crash dump in it.

Toshi  

FG_User_24
New Member
Jun 5, 2025 4:54 AM UTC

Thanks @Toshi_Esumi 

 

Found that the device is 40F memory only without internal storage and syslog didn't work although configured.

 

sjoshi
Staff
Staff
Jun 5, 2025 5:28 AM UTC

Hi,

 

You can enable comlog if the device supports.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-use-the-COMLog-feature/ta-p/195390

 

You can also connect to console of the device and when there is a reboot it will collect kernel related logs.

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-How-to-deal-with-a-kernel-panic/ta-p/226804

Thanks, Salon
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT