statistics
Use these commands to show, save, clear, and load detailed mail statistics, such as how many email were infected with a virus this month, or how many IBE secure email were sent.
Syntax
diagnose statistics set autoupdate {on | off}
diagnose statistics get {total | all | minute | hour | day | month | year}
diagnose statistics save <file-name_str>
diagnose statistics clear
diagnose statistics load <file-name_str>
diagnose statistics set flat
diagnose statistics set random <email-samples_int> <interval-seconds_int>
diagnose statistics mailstats reset display_name {<user_email> | ALL}
|
Variable |
Description |
Default |
|
Select either:
|
|
|
|
Select which time period of mail statistics to display. |
|
|
|
Enter a file name. |
|
|
|
Enter how many email sample statistics to generate. This can be useful for demonstration purposes, to simulate the statistics graph in a lab environment before deploying FortiMail. |
|
|
|
Enter the average interval in seconds between each sample statistic. |
|
|
|
Select which display name associations with email addresses to reset in the statistics, either:
|
|
Example
FortiMail # diagnose statistics get total
System Time: 2025-05-27 13:42:40 EDT (Uptime: 3d 23h 44m)
Total mail statistics:
First update at 2025-05-01 15:35:04 -0400(1746128104)
Latest update at 2025-05-27 13:42:40 -0400(1748367760)
Latest dump at 2025-05-27 11:03:02 -0400(1748358182)
Anti-Virus(drop/discard) | 0 |
CT_UNDEFINED | 1072 24 |
...
Session Limit | 3486 |
...
Policy Match-AntiSpam | 56338 6688 |
...
Total(67682) | 3487 57483 6712 |