🛡️
PortalPilot PRO
🛡️ FORTIANALYZER 7.6 ANALYST • REPORTS & LOG LIFECYCLE

Why Is My FortiAnalyzer Report Empty? (`Previous 7 Days`, Analytics vs `.gz` Archive & `hcache` Fix)

Logs show up cleanly inside Log View, yet running a PDF report returns zero rows—or spins for minutes before timing out. Fix the three exact FortiAnalyzer 7.6 retention and caching pitfalls below.

⚡ Quick Answer

1. Same-Day Reports Blank: In FortiAnalyzer Reports, Previous 7 Days excludes today (unlike FortiView)—switch to Custom or Previous <N> Hours.
2. Historical Data Missing: Only online SQL Analytics logs populate reports; compressed .gz Archive logs are offline until fetched via Log Fetching.
3. Slow Runtime: Check diagnose sql status sqlplugind + enable Auto-cache (hcache) and Extended Log Filtering.

🔍 Log Phase Breakdown (`.log` vs SQL Analytics vs `.gz` Archive)

1. Raw Received (.log)

Decompressed and written to active tlog.log / elog.log files. Not immediately queryable for SQL charts.

2. Analytics (Online SQL)

Indexed by sqlplugind. Required for FortiView, Threat Hunting, and Report charts.

3. Archive (Offline .gz)

Rolled & compressed for quota compliance. Offline until pulled between analyzers via Log Fetching.

⚡ Official FortiAnalyzer CLI Checks (Lag, `sqlplugind` & `hcache`)

# 1. Compare raw receive rate vs SQL insert daemon & lag
diagnose fortilogd lograte
diagnose fortilogd lograte-adom all
diagnose sql status sqlplugind

# 2. Check SQL report engine & precompiled hcache state
diagnose sql status sqlreportd
diagnose sql hcache status
diagnose sql show hcache-size
execute sql-report list-schedule root
Need FortiAnalyzer 7.6 Analyst Copilot without FortiAI Token Limits?
POSIX filters, $log SQL datasets, IOC triage & CLI checks • 100% local in Chrome & Edge

Related FortiAnalyzer & FortiGate Guides

❓ Frequently Asked Questions

Why is my FortiAnalyzer report empty even though logs appear in Log View?

The most common cause on Day 1 is setting Time Period to Previous 7 Days—unlike FortiView, Reports exclude the current day. Check Custom or Previous N Hours, confirm logs have not rolled out of SQL Analytics into offline .gz Archive files, and verify User Obfuscate or report filters are not filtering out rows.

What is the difference between Analytics logs and Archive logs on FortiAnalyzer?

Analytics logs are indexed in the online SQL database and actively power FortiView, Reports, and Threat Hunting. Archive logs are rolled, timestamped, and compressed (.gz) files considered offline—they cannot populate reports unless re-indexed.

How do I speed up slow FortiAnalyzer reports using hcache and Auto-cache?

Enable Auto-cache and Extended Log Filtering in Reports > Report Definitions settings so FortiAnalyzer builds precompiled hcache SQL tables as logs arrive. For multi-FortiGate environments, configure report grouping via config system report group and rebuild hcache.