272 Monitoring and Logging System Information
Configuring Email Alerts for Log Messages

Beginning in Privileged EXEC mode, use the following commands to

configure email alerts so that log messages are sent to the specified address.

Command Purpose
configure Enter Global Configuration mode.
logging email [
severity
] Enable email alerting and determine which non-critical log
messages should be emailed. Including the
severity
value
sets the lowest severity for which log messages are emailed.
These messages are collected and sent in a single email at
the configured log duration.
severity
— (Optional) Enter the number or name of the
severity level for non-critical messages. Log messages at or
above this severity level are emailed. For information about
severity levels, see Table11-1. Log messages below the
specified level are not emailed.
logging email urgent
{
severity
| none}
Determine which log messages are critical and should be
sent in a single email as soon as they are generated.
severity
— (Optional) Enter the number or name of the
severity level for critical messages. For information about
severity levels, see Table11-1.
logging email logtime

minutes

Specify how often to send the non-critical email alerts that
have been collected. . The valid range is 30 - 14 40 minutes.
logging email message-
type {urgent | non-
urgent | both} to-addr

email-address

Specify the email address of the recipient for log messages.
logging email from-addr

email-address

Specify the email address of the sender, which is the
switch.
logging email message-
type {urgent | non-
urgent | both} subject

subject

Specify the text that will appear in the subject line of email
alerts sent by the switch.