log alertemail
Use this command to enable or disable alert emails, and to choose which email policy to use with them. Alert emails notify administrators or other personnel when an alert condition occurs, such as a system failure or network attack.
The email address information and the alert message intervals are configured separately for each email policy. For information on the severity levels of log messages associated with an email policy, see
“config log email-policy”.
To use this command, your administrator account’s access control profile must have either
w or
rw permission to the
loggrp area. For more information, see
“Permissions”.
Syntax
config log alertemail
end
Variable | Description | Default |
status {enable | disable} | Enable to generate an alert email when the FortiWeb appliance records a log message, if that log message meets or exceeds the severity level configured in “config log email-policy”. | enable |
email-policy <policy_name> | Type the name of a previously configured email policy. The maximum length is 35 characters. To display a list of the existing email policies, type: set email-policy ? | No default. |
Example
This example enables alert email when either a system event or attack log message is logged. The alert email is sent using the recipients configured in emailpolicy1.
config log alertemail
set status enable
set email-policy emailpolicy1
end
Related topics