Fortinet white logo
Fortinet white logo

CLI Reference

config alertemail setting

config alertemail setting

Configure alert email settings.

config alertemail setting
    Description: Configure alert email settings.
    set username {string}
    set mailto1 {string}
    set mailto2 {string}
    set mailto3 {string}
    set filter-mode [category|threshold]
    set email-interval {integer}
    set IPS-logs [enable|disable]
    set firewall-authentication-failure-logs [enable|disable]
    set HA-logs [enable|disable]
    set FDS-update-logs [enable|disable]
    set antivirus-logs [enable|disable]
    set webfilter-logs [enable|disable]
    set configuration-changes-logs [enable|disable]
    set violation-traffic-logs [enable|disable]
    set admin-login-logs [enable|disable]
    set FDS-license-expiring-warning [enable|disable]
    set log-disk-usage-warning [enable|disable]
    set fortiguard-log-quota-warning [enable|disable]
    set FIPS-CC-errors [enable|disable]
    set FSSO-disconnect-logs [enable|disable]
    set ssh-logs [enable|disable]
    set fpx-license-logs [enable|disable]
    set FDS-license-expiring-days {integer}
    set local-disk-usage {integer}
    set emergency-interval {integer}
    set alert-interval {integer}
    set critical-interval {integer}
    set error-interval {integer}
    set warning-interval {integer}
    set notification-interval {integer}
    set information-interval {integer}
    set debug-interval {integer}
    set severity [emergency|alert|...]
end

config alertemail setting

Parameter

Description

Type

Size

username

Name that appears in the From: field of alert emails (max. 36 characters).

string

Maximum length: 35

mailto1

Email address to send alert email to (usually a system administrator) (max. 64 characters).

string

Maximum length: 63

mailto2

Optional second email address to send alert email to (max. 64 characters).

string

Maximum length: 63

mailto3

Optional third email address to send alert email to (max. 64 characters).

string

Maximum length: 63

filter-mode

How to filter log messages that are sent to alert emails.

option

-

Option

Description

category

Filter based on category.

threshold

Filter based on severity.

email-interval

Interval between sending alert emails.

integer

Minimum value: 1 Maximum value: 99999

IPS-logs

Enable/disable IPS logs in alert email.

option

-

Option

Description

enable

Enable IPS logs in alert email.

disable

Disable IPS logs in alert email.

firewall-authentication-failure-logs

Enable/disable firewall authentication failure logs in alert email.

option

-

Option

Description

enable

Enable firewall authentication failure logs in alert email.

disable

Disable firewall authentication failure logs in alert email.

HA-logs

Enable/disable HA logs in alert email.

option

-

Option

Description

enable

Enable HA logs in alert email.

disable

Disable HA logs in alert email.

FDS-update-logs

Enable/disable FortiGuard update logs in alert email.

option

-

Option

Description

enable

Enable FortiGuard update logs in alert email.

disable

Disable FortiGuard update logs in alert email.

antivirus-logs

Enable/disable antivirus logs in alert email.

option

-

Option

Description

enable

Enable antivirus logs in alert email.

disable

Disable antivirus logs in alert email.

webfilter-logs

Enable/disable web filter logs in alert email.

option

-

Option

Description

enable

Enable web filter logs in alert email.

disable

Disable web filter logs in alert email.

configuration-changes-logs

Enable/disable configuration change logs in alert email.

option

-

Option

Description

enable

Enable configuration change logs in alert email.

disable

Disable configuration change logs in alert email.

violation-traffic-logs

Enable/disable violation traffic logs in alert email.

option

-

Option

Description

enable

Enable violation traffic logs in alert email.

disable

Disable violation traffic logs in alert email.

admin-login-logs

Enable/disable administrator login/logout logs in alert email.

option

-

Option

Description

enable

Enable administrator login/logout logs in alert email.

disable

Disable administrator login/logout logs in alert email.

FDS-license-expiring-warning

Enable/disable FortiGuard license expiration warnings in alert email.

option

-

Option

Description

enable

Enable FortiGuard license expiration warnings in alert email.

disable

Disable FortiGuard license expiration warnings in alert email.

log-disk-usage-warning

Enable/disable disk usage warnings in alert email.

option

-

Option

Description

enable

Enable disk usage warnings in alert email.

disable

Disable disk usage warnings in alert email.

fortiguard-log-quota-warning

Enable/disable FortiCloud log quota warnings in alert email.

option

-

Option

Description

enable

Enable FortiCloud log quota warnings in alert email.

disable

Disable FortiCloud log quota warnings in alert email.

FIPS-CC-errors

Enable/disable FIPS and Common Criteria error logs in alert email.

option

-

Option

Description

enable

Enable FIPS and Common Criteria error logs in alert email.

disable

Disable FIPS and Common Criteria error logs in alert email.

FSSO-disconnect-logs

Enable/disable logging of FSSO collector agent disconnect.

option

-

Option

Description

enable

Enable logging of FSSO collector agent disconnect.

disable

Disable logging of FSSO collector agent disconnect.

ssh-logs

Enable/disable SSH logs in alert email.

option

-

Option

Description

enable

Enable SSH logs in alert email.

disable

Disable SSH logs in alert email.

fpx-license-logs

Enable/disable FortiProxy license related logs in alert email.

option

-

Option

Description

enable

Enable FortiProxy license related warnings in alert email.

disable

Disable FortiProxy license related warnings in alert email.

FDS-license-expiring-days

Number of days to send alert email prior to FortiGuard license expiration.

integer

Minimum value: 1 Maximum value: 100

local-disk-usage

Disk usage percentage at which to send alert email.

integer

Minimum value: 1 Maximum value: 99

emergency-interval

Emergency alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

alert-interval

Alert alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

critical-interval

Critical alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

error-interval

Error alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

warning-interval

Warning alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

notification-interval

Notification alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

information-interval

Information alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

debug-interval

Debug alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

severity

Lowest severity level to log.

option

-

Option

Description

emergency

Emergency level.

alert

Alert level.

critical

Critical level.

error

Error level.

warning

Warning level.

notification

Notification level.

information

Information level.

debug

Debug level.

config alertemail setting

config alertemail setting

Configure alert email settings.

config alertemail setting
    Description: Configure alert email settings.
    set username {string}
    set mailto1 {string}
    set mailto2 {string}
    set mailto3 {string}
    set filter-mode [category|threshold]
    set email-interval {integer}
    set IPS-logs [enable|disable]
    set firewall-authentication-failure-logs [enable|disable]
    set HA-logs [enable|disable]
    set FDS-update-logs [enable|disable]
    set antivirus-logs [enable|disable]
    set webfilter-logs [enable|disable]
    set configuration-changes-logs [enable|disable]
    set violation-traffic-logs [enable|disable]
    set admin-login-logs [enable|disable]
    set FDS-license-expiring-warning [enable|disable]
    set log-disk-usage-warning [enable|disable]
    set fortiguard-log-quota-warning [enable|disable]
    set FIPS-CC-errors [enable|disable]
    set FSSO-disconnect-logs [enable|disable]
    set ssh-logs [enable|disable]
    set fpx-license-logs [enable|disable]
    set FDS-license-expiring-days {integer}
    set local-disk-usage {integer}
    set emergency-interval {integer}
    set alert-interval {integer}
    set critical-interval {integer}
    set error-interval {integer}
    set warning-interval {integer}
    set notification-interval {integer}
    set information-interval {integer}
    set debug-interval {integer}
    set severity [emergency|alert|...]
end

config alertemail setting

Parameter

Description

Type

Size

username

Name that appears in the From: field of alert emails (max. 36 characters).

string

Maximum length: 35

mailto1

Email address to send alert email to (usually a system administrator) (max. 64 characters).

string

Maximum length: 63

mailto2

Optional second email address to send alert email to (max. 64 characters).

string

Maximum length: 63

mailto3

Optional third email address to send alert email to (max. 64 characters).

string

Maximum length: 63

filter-mode

How to filter log messages that are sent to alert emails.

option

-

Option

Description

category

Filter based on category.

threshold

Filter based on severity.

email-interval

Interval between sending alert emails.

integer

Minimum value: 1 Maximum value: 99999

IPS-logs

Enable/disable IPS logs in alert email.

option

-

Option

Description

enable

Enable IPS logs in alert email.

disable

Disable IPS logs in alert email.

firewall-authentication-failure-logs

Enable/disable firewall authentication failure logs in alert email.

option

-

Option

Description

enable

Enable firewall authentication failure logs in alert email.

disable

Disable firewall authentication failure logs in alert email.

HA-logs

Enable/disable HA logs in alert email.

option

-

Option

Description

enable

Enable HA logs in alert email.

disable

Disable HA logs in alert email.

FDS-update-logs

Enable/disable FortiGuard update logs in alert email.

option

-

Option

Description

enable

Enable FortiGuard update logs in alert email.

disable

Disable FortiGuard update logs in alert email.

antivirus-logs

Enable/disable antivirus logs in alert email.

option

-

Option

Description

enable

Enable antivirus logs in alert email.

disable

Disable antivirus logs in alert email.

webfilter-logs

Enable/disable web filter logs in alert email.

option

-

Option

Description

enable

Enable web filter logs in alert email.

disable

Disable web filter logs in alert email.

configuration-changes-logs

Enable/disable configuration change logs in alert email.

option

-

Option

Description

enable

Enable configuration change logs in alert email.

disable

Disable configuration change logs in alert email.

violation-traffic-logs

Enable/disable violation traffic logs in alert email.

option

-

Option

Description

enable

Enable violation traffic logs in alert email.

disable

Disable violation traffic logs in alert email.

admin-login-logs

Enable/disable administrator login/logout logs in alert email.

option

-

Option

Description

enable

Enable administrator login/logout logs in alert email.

disable

Disable administrator login/logout logs in alert email.

FDS-license-expiring-warning

Enable/disable FortiGuard license expiration warnings in alert email.

option

-

Option

Description

enable

Enable FortiGuard license expiration warnings in alert email.

disable

Disable FortiGuard license expiration warnings in alert email.

log-disk-usage-warning

Enable/disable disk usage warnings in alert email.

option

-

Option

Description

enable

Enable disk usage warnings in alert email.

disable

Disable disk usage warnings in alert email.

fortiguard-log-quota-warning

Enable/disable FortiCloud log quota warnings in alert email.

option

-

Option

Description

enable

Enable FortiCloud log quota warnings in alert email.

disable

Disable FortiCloud log quota warnings in alert email.

FIPS-CC-errors

Enable/disable FIPS and Common Criteria error logs in alert email.

option

-

Option

Description

enable

Enable FIPS and Common Criteria error logs in alert email.

disable

Disable FIPS and Common Criteria error logs in alert email.

FSSO-disconnect-logs

Enable/disable logging of FSSO collector agent disconnect.

option

-

Option

Description

enable

Enable logging of FSSO collector agent disconnect.

disable

Disable logging of FSSO collector agent disconnect.

ssh-logs

Enable/disable SSH logs in alert email.

option

-

Option

Description

enable

Enable SSH logs in alert email.

disable

Disable SSH logs in alert email.

fpx-license-logs

Enable/disable FortiProxy license related logs in alert email.

option

-

Option

Description

enable

Enable FortiProxy license related warnings in alert email.

disable

Disable FortiProxy license related warnings in alert email.

FDS-license-expiring-days

Number of days to send alert email prior to FortiGuard license expiration.

integer

Minimum value: 1 Maximum value: 100

local-disk-usage

Disk usage percentage at which to send alert email.

integer

Minimum value: 1 Maximum value: 99

emergency-interval

Emergency alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

alert-interval

Alert alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

critical-interval

Critical alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

error-interval

Error alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

warning-interval

Warning alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

notification-interval

Notification alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

information-interval

Information alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

debug-interval

Debug alert interval in minutes.

integer

Minimum value: 1 Maximum value: 99999

severity

Lowest severity level to log.

option

-

Option

Description

emergency

Emergency level.

alert

Alert level.

critical

Critical level.

error

Error level.

warning

Warning level.

notification

Notification level.

information

Information level.

debug

Debug level.