log setting local
Use this command to configure log message storage on the local hard disk.
Syntax
config log setting local
set antispam-log-status {enable | disable}
set antivirus-log-status {enable | disable}
set disk-full {overwrite | nolog}
set encryption-log-status {enable | disable}
set event-log-category [{imap pop3 smtp webmail}]
set event-log-status {enable | disable}
set history-log-status {enable | disable}
set imap-mail-log-event delete
set loglevel {alert | critical | debug | emergency | error | information | notification | warning}
set pop3-mail-log-event delete
set retention-period <days_int>
set rotation-period <days_int>
set rotation-size <file-size_int>
set syseventlog-category [{admin configuration configuration-user dns ha system update}]
end
Variable |
Description |
Default |
enable |
||
enable |
||
Enter the action the FortiMail unit will perform when the local disk is full and a new log message is caused:
|
overwrite |
|
enable |
||
Type all of the mail log types and subtypes that you want to record to this storage location. Separate each type with a space.
|
webmail smtp |
|
Enable or disable event logging to the local hard disk. |
enable |
|
Enable to log both successful and unsuccessful attempts by the built-in MTA or proxies to deliver email. |
enable |
|
Enable logging of delete action on email from IMAP mail client. To disable this option, enter the following command: unset imap-mail-log-event clear |
delete |
|
loglevel {alert | critical | debug | emergency | error | information | notification | warning} |
Type one of the following severity levels:
This log destination will receive log messages greater than or equal to this severity level. However, the relevant information level logs are always sent for any other log level selection. For details, see the FortiMail Administration Guide. |
information |
Enable logging of delete action on email from POP3 mail client. To disable this option, enter the following command: unset pop3-mail-log-event clear |
delete |
|
Specify how long to keep the logs. Valid range is from 1 to 1461 days. Default value is 0, which means no limit. |
0 |
|
Enter the hour of the day when the rotation should start. |
0 |
|
Enter the maximum age of the current log file in days. When the log file reaches either the maximum size or age, the log file is rolled (that is, the current log file is saved to a file with a new name, and a new log file is started). |
10 |
|
Enter the maximum size of the current log file in megabytes (MB). TValid range is from 1 to 500. When the log file reaches either the maximum size or age, the log file is rolled (that is, the current log file is saved to a file with a new name, and a new log file is started). |
100 |
|
Enable to send log types which are enabled to the local hard disk. |
enable |
|
syseventlog-category [{admin configuration configuration-user dns ha system update}] |
Type all of the system event log types and subtypes that you want to record to this storage location. Separate each type with a space.
|
admin configuration configuration-user dns ha system update |
Enable to log system events. |
enable |