Created on
09-26-2025
12:37 AM
Edited on
10-05-2025
01:47 PM
By
Jean-Philippe_P
Description |
This article describes how to verify the issue by checking items in FortiAnalyzer, and an attempt to fix the FortiAnalyzer stops inserting the logs issue. |
Scope | FortiAnalyzer. |
Solution |
There are many ways to verify when FortiAnalyzer receives the logs, but stop inserting according to the following list:
Insert Rate vs Receive Rate: When the insert rate is plotted, the insert rate is zero. Log Insert Lag Time: The graph is not plotted (not 0s) and is empty.
execute log fortianalyzer test-connectivity
The highlighted red box is able to verify that the logs are being sent and received by FortiAnalyzer.
From the highlighted box: Actual from yyyy/mm/dd hh:mm:ss to yyyy/mm/dd hh:mm:ss can be compared when the command is run again after the last check time.
diagnose test application sqllogd 4
The command can be run 4-5 times in short succession to compare the file field in the highlighted box. It indicates the current file that the FortiAnalyzer is processing.
After running the command 4-5 times and verifying the file name has not changed, it is a good indicator that FortiAnalyzer is stuck on inserting the logs.
After having verified all the symptoms, the following steps can be taken as an attempt to resolve the issue:
diagnose debug crash read
Based on the output, check on the latest crash daemon and observe if the crash is SQL related, and it is near the last analytics logs.
If there are any, the daemon may be restarted using the following command:
diagnose test application <daemon_name> 99
diagnose test application fazcfgd 6 stat 100
Note: The output would be too long as there will be event logs, ClickHouse Errors, and Postgres Errors.
From the output, check the error on that is the nearest date when the log stopped being inserted. For this example, the error from the output is extracted from the following:
Emergency/Critical elog:
76163:2025-09-17 13:15:17 tz="+1000" log_id=0028037005 type=event subtype=fazsys pri=emergency desc="FortiAnalyzer daemon suspended" user="system" userfrom="system" msg="siemdbd suspended due to disk full." operation="Application suspend" performed_on="" changes="siemdbd stopped inserting logs." action="suspend"
Check the allocated storage of the ADOM and ensure enough storage is allocated by navigating to System Settings -> ADOM. Scroll to the right to see storage usage.
Note: For FortiAnalyzer Private Cloud, the minimum system requirements are 500GB. An unexpected behaviour may occur due to not meeting the minimum requirements, including FortiAnalyzer not sending the logs.
execute sql-local rebuild-db <---It requires a restart.
Related article: Technical Tip: FortiAnalyzer SQL database delete and rebuild |
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 2025 Fortinet, Inc. All Rights Reserved.