Created on 03-31-2022 09:42 PM Edited on 01-25-2024 08:53 PM By Anthony_E
Description
This article describes the difference between Archive and Analytic logs, and how the latter are stored in a SQL database.
Scope
FortiAnalyzer.
Solution
Every FortiGate can send logs on either port 514 (TCP or UDP).
The daemons that handle logs are 'miglogd' (FortiGate) and 'oftpd' (FortiAnalyzer).
Every log has log 'fields' such as the following:
...
An example of 1 log, would be:
Logs can be viewed it in two different formats.
'Raw log' (text option).
'Formatted Log' (GUI option). Most preferred by almost all users due to being easier to read.
The limit of logs received per day is an important metric to check.
This limit will depend on the Model or VM License.
Fortianalyzer Archive Logs.
When Fortianalyzer receives logs, those logs are stored as Archive logs, and when the active log rolls, the resulting logfile is compressed.
'Double click' in one packet of logs. Many logs in raw format will appear.
It is possible to define the size of the packet on the option 'Roll log file when size exceeds' located in System Settings.
Fortianalyzer Analytic Database.
The analytic database is the place where logs are indexed from the Archive to the SQL database.
Notice that even though it is possible to see 196 days on the Analytics database, it does not indicate 196 days of daily logs, it means that the oldest log is from 196 days ago.
Normally the oldest log is frequently to see it from Type: Event logs.
Also, consider Analytic database is where reports are generated.
Log Handling Flow:
The first metric to delete logs in any database is:
Always check the current disk space is allowing the dats expected to be seen.
Otherwise, consider extending disk space if there VM or enable only policies which are most important to generate logs.
Consider that every FortiAnalyzer will depend on the Analytic Sustain Rate in both VMs and physical units.
Sustained Rate - maximum constant log message rate that the FortiAnaylzer platform can maintain for a minimum of 48 hours without SQL database and system performance degradation.
Related Article:
Technical Note: How to set log retention values in FortiAnalyzer
Technical Tip: How to estimate disk space needed for Archive and Analytics logs
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.