log-priority

This command sets the priority of the log event when a control procedure is triggered.

Syntax

log-priority priority

Parameters

priority
Sets the event priority. The priority indicates that all events that are greater than or equal to this value are logged. Events use the following priority in descending order.
  • For only emergency events, enter emerg.
  • For alert events and greater, enter alert.
  • For critical events and greater, enter critic.
  • For error events and greater, enter error.
  • For warning events and greater, enter warn.
  • For notice events and greater, enter notice.
  • For information events and greater, enter info.
  • For debug events and greater, enter debug.

Guidelines

The log-priority command sets the priority of the log event when a control procedure is triggered.

This command is required unless you want to events at the debug level, which is the default value.

Examples

  • Create the Reject control procedure to reject messages (deny service) for 2½ seconds and add a log event at error priority.
    # monitor-action Reject
    New Message Filter Action configuration
    # type reject
    # log-priority error
    # block-interval 2500
    # exit
    #
  • Create the BufferThenReject control procedure to buffer messages and add a log event at warn priority. When the buffer is full, reject messages for 5 seconds.
    # monitor-action BufferThenReject
    New Message Filter Action configuration
    # type buffer
    # log-priority info
    # block-interval 5000
    # exit
    #
  • Create the Log control procedure to add a log event at notify priority and take no further action.
    # monitor-action Log
    New Message Filter Action configuration
    # type notify
    # log-priority notify
    # exit
    #