Fortinet white logo
Fortinet white logo

CLI Reference

log email-policy

log alertMail

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 details about the severity levels of log messages associated with an email policy, see 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 details, see Permissions.

Syntax

config log alertMail

set status {enable | disable}

set email-policy "<policy_name>"

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 log email-policy. disable

email-policy "<policy_name>"

Enter the name of a previously configured email policy. The maximum length is 63 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 alertMail

set status enable

set email-policy "emailpolicy1"

end

Related topics

log email-policy

log alertMail

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 details about the severity levels of log messages associated with an email policy, see 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 details, see Permissions.

Syntax

config log alertMail

set status {enable | disable}

set email-policy "<policy_name>"

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 log email-policy. disable

email-policy "<policy_name>"

Enter the name of a previously configured email policy. The maximum length is 63 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 alertMail

set status enable

set email-policy "emailpolicy1"

end

Related topics