Skip to main content
sagha
Staff
Staff
March 20, 2023

Troubleshooting Tip: FortiGate losing logs or events after reboot

  • March 20, 2023
  • 0 replies
  • 6717 views
Description This article describes why FortiGate may be missing logs or events after every reboot and offers potential fixes.
Scope Any supported version of FortiGate.
Solution

Logs and events can be stored directly on FortiGate in one of two places:

 

  1. In system memory.
  2. On the disk.

 

These can be configured in the GUI under Log & Report -> Log Settings

 

image.png

 

  • If only memory logging is enabled, FortiGate will store the logs and events in the system memory. These logs will be lost every time the FortiGate is rebooted or power cycled. 
  • The second option of disk logging, if it is available and feasible, should be used to ensure that logs and events are not lost with a reboot or power cycle.

 

image.png

 

When using FortiGate devices where disk logging cannot be enabled, it is recommended to use FortiAnalyzer or configure a syslog server to store real-time logs and events. 

 

image.png

 

image.png

 

The command below is a key diagnostic command for investigating FortiGate instability, including scenarios where firewall logs are missing. It reveals process crashes, watchdog resets, or forced reboots, helping correlate system failures with interruptions in logging or network services.

 

Run the following in the FortiGate CLI:

 

diagnose debug crashlog read 

 

Related articles: