--- 1/draft-ietf-netmod-syslog-model-03.txt 2015-07-06 15:15:21.542852775 -0700 +++ 2/draft-ietf-netmod-syslog-model-04.txt 2015-07-06 15:15:21.590853977 -0700 @@ -1,19 +1,18 @@ - NETMOD WG Clyde Wildes Internet-Draft Cisco Systems Intended status: Informational Agrahara Kiran Koushik -Expires: Sep 09, 2015 Brocade Communication Systems - Mar 09, 2015 +Expires: Jan 06, 2016 Brocade Communication Systems + Jul 06, 2015 SYSLOG YANG model - draft-ietf-netmod-syslog-model-03 + draft-ietf-netmod-syslog-model-04 Abstract This document describes a data model for Syslog protocol which is used to convey event notification messages. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. @@ -21,21 +20,21 @@ Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on Sep 05, 2015. + This Internet-Draft will expire on Jan 06, 2016. Copyright Notice Copyright (c) 2015 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents @@ -138,28 +137,20 @@ +-------------+ +-------------+ +-------------+ +-------------+ | SNMP | | Interface | | Standby | | Syslog | | Events | | Events | | Supervisor | | Itself | +-------------+ +-------------+ +-------------+ +-------------+ | | +----------------------------------------------------------------+ | | - v - - Group Level Suppression - +------------------------------+ - | Filter by message facility | - | and message severity | - +------------------------------+ - | | | +------------+------------+------------+-----------+ | | | | | v v v v v Message Distributors +----------+ +----------+ +----------+ +----------+ +----------+ | | | Log | | Log | | User | | Remote | | Console | | Buffer | | File(s) | | Terminals| | Servers| +----------+ +----------+ +----------+ +----------+ +----------+ @@ -172,184 +163,178 @@ - log file(s) - user terminals - remote server(s). Optional features are used to specified fields that are not present in all vendor configurations. 3.1. SYSLOG Module module: ietf-syslog +--rw syslog - +--rw global-logging-action {global-logging-action}? - | +--rw (logging-level-scope)? - | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity - | | +--:(logging-facility-none) - | | | +--rw none? empty - | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] - | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | +--rw pattern-match? string - +--rw console-logging-action - | +--rw (logging-level-scope)? - | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity - | | +--:(logging-facility-none) - | | | +--rw none? empty - | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] - | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | +--rw pattern-match? string - +--rw buffered-logging-action - | +--rw (logging-level-scope)? - | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity - | | +--:(logging-facility-none) - | | | +--rw none? empty - | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] - | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | | +--rw pattern-match? string - | +--rw buffer-size? uint64 - +--rw file-logging-action - | +--rw logging-files* [file-name] - | +--rw file-name inet:uri - | +--rw (logging-level-scope)? - | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity - | | +--:(logging-facility-none) - | | | +--rw none? empty - | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] - | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | | +--rw pattern-match? string - | +--rw file-logging-structured-data? boolean {file-logging-structured-data}? - | +--rw file-logging-archive {file-logging-archive-config}? - | +--rw file-number? uint32 - | +--rw file-size? uint64 - | +--rw file-permission? enumeration - +--rw remote-logging-action - | +--rw remote-logging-destination* [destination] - | +--rw destination inet:host + +--rw log-actions + +--rw console + | +--rw log-selector | +--rw (logging-level-scope)? | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity + | | | +--rw all-facilities? empty + | | | +--rw severity? union | | +--:(logging-facility-none) - | | | +--rw none? empty + | | | +--rw no-facilities? empty | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] + | | +--rw facilities* [facility] | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | | +--rw pattern-match? string - | +--rw remote-logging-structured-data? boolean {remote-logging-structured-data}? - | +--rw destination-port? inet:port-number + | | +--rw severity? union + | +--rw severity-operator? enumeration {selector-severity-operator-config}? + | +--rw pattern-match? string {selector-match-processing-config}? + +--rw buffer + | +--rw log-buffer* [name] + | +--rw name string + | +--rw log-selector + | | +--rw (logging-level-scope)? + | | | +--:(logging-facility-all) + | | | | +--rw all-facilities? empty + | | | | +--rw severity? union + | | | +--:(logging-facility-none) + | | | | +--rw no-facilities? empty + | | | +--:(logging-facility) + | | | +--rw facilities* [facility] + | | | +--rw facility identityref + | | | +--rw severity? union + | | +--rw severity-operator? enumeration {selector-severity-operator-config}? + | | +--rw pattern-match? string {selector-match-processing-config}? + | +--rw buffer-size-bytes? uint64 {buffer-limit-bytes}? + | +--rw buffer-size-messages? uint64 {buffer-limit-messages}? + +--rw file + | +--rw log-file* [name] + | +--rw name inet:uri + | +--rw log-selector + | | +--rw (logging-level-scope)? + | | | +--:(logging-facility-all) + | | | | +--rw all-facilities? empty + | | | | +--rw severity? union + | | | +--:(logging-facility-none) + | | | | +--rw no-facilities? empty + | | | +--:(logging-facility) + | | | +--rw facilities* [facility] + | | | +--rw facility identityref + | | | +--rw severity? union + | | +--rw severity-operator? enumeration {selector-severity-operator-config}? + | | +--rw pattern-match? string {selector-match-processing-config}? + | +--rw structured-data? boolean {structured-data-config}? + | +--rw file-archive + | +--rw number-of-files? uint32 {file-limit-size}? + | +--rw max-file-size? uint64 {file-limit-size}? + | +--rw rollover? uint32 {file-limit-duration}? + | +--rw retention? uint16 {file-limit-duration}? + +--rw remote + | +--rw remote-logging-destination* [name] + | +--rw name string + | +--rw (transport) + | | +--:(tcp) + | | | +--rw tcp + | | | +--rw address? inet:host + | | | +--rw port? inet:port-number + | | +--:(udp) + | | +--rw udp + | | +--rw address? inet:host + | | +--rw port? inet:port-number + | +--rw log-selector + | | +--rw (logging-level-scope)? + | | | +--:(logging-facility-all) + | | | | +--rw all-facilities? empty + | | | | +--rw severity? union + | | | +--:(logging-facility-none) + | | | | +--rw no-facilities? empty + | | | +--:(logging-facility) + | | | +--rw facilities* [facility] + | | | +--rw facility identityref + | | | +--rw severity? union + | | +--rw severity-operator? enumeration {selector-severity-operator-config}? + | | +--rw pattern-match? string {selector-match-processing-config}? | +--rw destination-facility? identityref | +--rw source-interface? if:interface-ref - | +--rw vrf-name? string {remote-logging-use-vrf}? | +--rw syslog-sign! {signed-messages-config}? | +--rw cert-initial-repeat uint16 | +--rw cert-resend-delay uint16 | +--rw cert-resend-count uint16 | +--rw sig-max-delay uint16 | +--rw sig-number-resends uint16 | +--rw sig-resend-delay uint16 | +--rw sig-resend-count uint16 - +--rw terminal-logging-action + +--rw terminal +--rw (user-scope)? +--:(all-users) | +--rw all-users + | +--rw log-selector | +--rw (logging-level-scope)? | | +--:(logging-facility-all) - | | | +--rw severity? syslogtypes:severity + | | | +--rw all-facilities? empty + | | | +--rw severity? union | | +--:(logging-facility-none) - | | | +--rw none? empty + | | | +--rw no-facilities? empty | | +--:(logging-facility) - | | +--rw logging-facilities* [facility] + | | +--rw facilities* [facility] | | +--rw facility identityref - | | +--rw severity? syslogtypes:severity - | +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | | +--rw select-message-severity? enumeration - | +--rw logging-match-processing {selector-match-processing-config}? - | +--rw pattern-match? string + | | +--rw severity? union + | +--rw severity-operator? enumeration {selector-severity-operator-config}? + | +--rw pattern-match? string {selector-match-processing-config}? +--:(per-user) {terminal-facility-user-logging-config}? +--rw user-name* [uname] +--rw uname string + +--rw log-selector +--rw (logging-level-scope)? | +--:(logging-facility-all) - | | +--rw severity? syslogtypes:severity + | | +--rw all-facilities? empty + | | +--rw severity? union | +--:(logging-facility-none) - | | +--rw none? empty + | | +--rw no-facilities? empty | +--:(logging-facility) - | +--rw logging-facilities* [facility] + | +--rw facilities* [facility] | +--rw facility identityref - | +--rw severity? syslogtypes:severity - +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? - | +--rw select-message-severity? enumeration - +--rw logging-match-processing {selector-match-processing-config}? - +--rw pattern-match? string + | +--rw severity? union + +--rw severity-operator? enumeration {selector-severity-operator-config}? + +--rw pattern-match? string {selector-match-processing-config}? 4. SYSLOG YANG Models 4.1. SYSLOG-TYPES module file "ietf-syslog-types.yang" module ietf-syslog-types { namespace "urn:ietf:params:xml:ns:yang:ietf-syslog-types"; prefix syslogtypes; organization "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; contact "WG Web: WG List: - WG Chair: Juergen Schoenwaelder - - WG Chair: Tom Nadeau - + - Editor: Clyde Wildes - + WG Chair: Juergen Schoenwaelder + - Editor: Agrahara Kiran Koushik - "; + Editor: Ladislav Lhotka + "; description "This module contains a collection of YANG type definitions for SYSLOG."; - revision 2015-03-05 { + revision 2015-07-06 { description "Initial Revision"; reference - "This model references RFC 5424 - The Syslog Protocol."; - + "This model references RFC 5424 - The Syslog Protocol, + and RFC 5848 - Signed Syslog Messages."; } typedef severity { type enumeration { enum "emergency" { value 0; description "Emergency Level Msg"; } enum "alert" { @@ -382,21 +367,21 @@ description "Informational Level Msg"; } enum "debug" { value 7; description "Debugging Level Msg"; } } description - "The definitions for Syslog message severity."; + "The definitions for Syslog message severity as per RFC 5424."; } identity syslog-facility { description "The base identity to represent syslog facilities"; } identity kern { base syslog-facility; description @@ -575,80 +559,77 @@ import ietf-syslog-types { prefix syslogtypes; } organization "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; contact "WG Web: WG List: - WG Chair: David Kessens - + WG Chair: Tom Nadeau + WG Chair: Juergen Schoenwaelder - Editor: Clyde Wildes - - - Editor: Agrahara Kiran Koushik - "; - + Editor: Ladislav Lhotka + "; description "This module contains a collection of YANG definitions for Syslog configuration."; - revision 2015-03-05 { + revision 2015-07-06 { description "Initial Revision"; reference - "This model references RFC 5424 - The Syslog Protocol, - and RFC 5848 - Signed Syslog Messages."; + "RFC 5424: The Syslog Protocol + RFC 5848: Signed Syslog Messages"; } - feature global-logging-action { + feature buffer-limit-bytes { description - "This feature represents the ability to suppress log - messages on the global level."; + "This feature indicates that local memory logging buffers + are limited in size using a limit expressed in bytes."; } - feature file-logging-structured-data { + feature buffer-limit-messages { description - "This feature represents the ability to log messages - to a file in structured-data format as per RFC 5424."; + "This feature indicates that local memory logging buffers + are limited in size using a limit expressed in number + of messages."; } - feature remote-logging-structured-data { + feature structured-data-config { description - "This feature represents the ability to deliver log - messages to a remote server in structured-data format - as per RFC 5424."; + "This feature represents the ability to log messages + in structured-data format as per RFC 5424."; } - feature file-logging-archive-config { + feature file-limit-size { description - "This feature represents the ability to archive log files."; + "This feature indicates that file logging resources + are managed using size and number limits."; } - feature remote-logging-use-vrf { + feature file-limit-duration { description - "This feature allows remote logging of messages to a - particular VRF."; + "This feature indicates that file logging resources + are managed using time based limits."; } feature terminal-facility-user-logging-config { description "This feature represents the ability to adjust log message settings for individual terminal users."; } - feature selector-advanced-level-processing-config { + feature selector-severity-operator-config { description "This feature represents the ability to select messages using the additional operators equal to, or not equal to when comparing the Syslog message severity."; } feature selector-match-processing-config { description "This feature represents the ability to select messages based on a Posix 1003.2 regular expression pattern match."; @@ -658,372 +639,438 @@ description "This feature represents the ability to configure signed syslog messages according to RFC 5848."; } grouping syslog-severity { description "This grouping defines the Syslog severity which is used to filter log messages."; leaf severity { + type union { type syslogtypes:severity; + type enumeration { + enum all { + value -1; description - "This leaf specifies the Syslog message severity. - No value implies all severities."; + "This enum describes the case where all severities + are requested."; + } + } + } + description + "This leaf specifies the Syslog message severity. When + severity is specified the default severity comparison + is all messages of the specified severity and greater are + logged unless all is specified which means all severities + are requested. No value implies no severity is requested."; } } grouping syslog-selector { description "This grouping defines a Syslog selector which is used to filter log messages for the given action in which the selector appears. Choose one of the following: logging-facility-all logging-facility-none logging-facility [ ...] Additional severity comparison operations are available - using the logging-advanced-level-processing container. If - the logging-advanced-level-processing container is not - present all messages of the specified severity and higher - are logged according to the given action."; + using the severity-operator leaf. If the severity-operator + leaf is not present all messages of the specified severity + and higher are logged according to the given action."; + container log-selector { + description + "This container describes the log selector parameters + for Syslog."; choice logging-level-scope { default logging-facility-all; description "This choice describes the option to specify all facilities, no facilities, or a specific facility."; case logging-facility-all { description "This case specifies all facilities will match when comparing the Syslog message facility."; + leaf all-facilities { + type empty; + description + "This leaf specifies that all facilities participate in + the filtering of Syslog messages for this action."; + } uses syslog-severity; } case logging-facility-none { description "This case specifies no facilities will match when comparing the Syslog message facility. This is a method that can be used to turn an action off."; - leaf none { + leaf no-facilities { type empty; description - "This leaf specifies that no facilities participate in the - filtering of Syslog messages for this action."; + "This leaf specifies that no facilities participate in + the filtering of Syslog messages for this action."; } } case logging-facility { description "This case specifies one or more specified facilities will match when comparing the Syslog message facility."; - list logging-facilities { + list facilities { key "facility"; description "This list describes a collection of Syslog facilities and severities."; leaf facility { type identityref { base syslogtypes:syslog-facility; } description "The leaf uniquely identifies a Syslog facility."; } uses syslog-severity; } } } - container logging-advanced-level-processing { - if-feature selector-advanced-level-processing-config; - description - "This container describes the configuration parameters for - advanced Syslog selector severity comparison."; - leaf select-message-severity { + leaf severity-operator { + if-feature selector-severity-operator-config; type enumeration { enum equals-or-higher { description - "All messages of the specified severity and higher are - logged according to the given action"; + "This enum specifies all messages of the specified + severity and higher are logged according to the + given action"; } enum equals { description - "This leaf specifies all messages for the specified - severity."; + "This enum specifies all messages that are for + the specified severity are logged according to the + given action"; } enum not-equals { description - "This leaf specifies all messages that are not for the - specified severity."; + "This enum specifies all messages that are not for + the specified severity are logged according to the + given action"; } } default equals-or-higher; description "This leaf describes the option to specify how the severity comparison is performed."; } - } - container logging-match-processing { - if-feature selector-match-processing-config; - description - "This container describes the configuration parameters for - matching Syslog messages using a regular expression pattern - match."; leaf pattern-match { + if-feature selector-match-processing-config; type string; description "This leaf desribes a Posix 1003.2 regular expression string that can be used to select a Syslog message for logging. The match is performed on the RFC 5424 SYSLOG-MSG field."; } } } container syslog { description "This container describes the configuration parameters for Syslog."; - container global-logging-action { - if-feature global-logging-action; + container log-actions { description - "This container describes the configuration parameters for - global logging. Global logging represents the ability to - perform global log message suppression."; - uses syslog-selector; - } - container console-logging-action { + "This container describes the log action parameters + for Syslog."; + container console { description "This container describes the configuration parameters for console logging."; uses syslog-selector; } - container buffered-logging-action { + container buffer { description "This container describes the configuration parameters for - local memory buffer logging."; + local memory buffer logging. The buffer is circular in + nature, so newer messages overwrite older messages after + the buffer is filled."; + list log-buffer { + key name; + description + "This list describes a collection of local logging + memory buffers."; + leaf name { + type string; + description + "This leaf specifies the name of the log buffer."; + } uses syslog-selector; - leaf buffer-size { + leaf buffer-size-bytes { + if-feature buffer-limit-bytes; type uint64; + units "bytes"; description - "This leaf describes the amount of memory that will be - dedicated to local memory buffer logging. The default - value varies by implementation."; + "This leaf configures the amount of memory (in bytes) + that will be dedicated to the local memory logging + buffer. The default value varies by implementation."; } + leaf buffer-size-messages { + if-feature buffer-limit-messages; + type uint64; + units "log messages"; + description + "This leaf configures the amount number of log + messages that can be stored in the local memory + logging buffer. The default value varies by + implementation."; } - container file-logging-action { + } + } + + container file { description "This container describes the configuration parameters for file logging."; - list logging-files { - key "file-name"; + list log-file { + key "name"; description "This list describes a collection of local logging files."; - leaf file-name { + leaf name { type inet:uri; description - "This leaf specifies the name of the log file."; + "This leaf specifies the name of the log file which + MUST use the uri scheme file:."; } uses syslog-selector; - leaf file-logging-structured-data { - if-feature file-logging-structured-data; + leaf structured-data { + if-feature structured-data-config; type boolean; default false; description - "This leaf describes how log messages are written to the - log file. If true, messages will be written in - structured-data format; if false, messages will be - written in standard message format."; + "This leaf describes how log messages are written to + the log file. If true, messages will be written with + one or more STRUCTURED-DATA elements as per RFC5424; + if false, messages will be written with + STRUCTURED-DATA = NILVALUE."; } - container file-logging-archive { - if-feature file-logging-archive-config; + container file-archive { description "This container describes the configuration parameters for log file archiving."; - leaf file-number { + leaf number-of-files { + if-feature file-limit-size; type uint32; - default 1; description "This leaf specifies the maximum number of log files - retained."; + retained. Specify 1 for implementations that only + support one log file."; } - leaf file-size { + leaf max-file-size { + if-feature file-limit-size; type uint64; - default 262144; + units "megabytes"; description "This leaf specifies the maximum log file size."; } - leaf file-permission { - type enumeration { - enum world-readable { - value 1; - description - "This enum specifies that the log files - are readable by world."; - } - enum no-world-readable { - value 2; + leaf rollover { + if-feature file-limit-duration; + type uint32; + units "minutes"; description - "This enum specifies that the log files - are not readable by world."; - } + "This leaf specifies the length of time that log + events should be written to a specific log file. + Log events that arrive after the rollover period + cause the current log file to be closed and a new + log file to be opened."; } - default no-world-readable; + leaf retention { + if-feature file-limit-duration; + type uint16; + units "hours"; description - "This leaf describes who can read log files"; + "This leaf specifies the length of time that + completed/closed log event files should be stored + in the file system before they are deleted."; } } } } - container remote-logging-action { + container remote { description "This container describes the configuration parameters for remote logging."; list remote-logging-destination { - key "destination"; + key "name"; description "This list describes a collection of remote logging destinations."; - leaf destination { + leaf name { + type string; + description + "An arbitrary name for the endpoint to connect to."; + } + choice transport { + mandatory true; + description + "This choice describes the transport option."; + case tcp { + container tcp { + description + "This container describes the TCP transport + options."; + leaf address { type inet:host; description "The leaf uniquely specifies the address of the - remote host. One of the following must be specified: - an ipv4 address, an ipv6 address, or a host name."; + remote host. One of the following must be + specified: an ipv4 address, an ipv6 address, + or a host name."; } - uses syslog-selector; - leaf remote-logging-structured-data { - if-feature remote-logging-structured-data; - type boolean; - default false; + leaf port { + type inet:port-number; + default 514; description - "This leaf describes how log messages are sent to the - remote server. If true, messages will be sent in - structured-data format; if false, messages will be - sent in standard message format."; + "This leaf specifies the port number used to + deliver messages to the remote server."; } - leaf destination-port { + } + } + case udp { + container udp { + description + "This container describes the UDP transport + options."; + leaf address { + type inet:host; + description + "The leaf uniquely specifies the address of the + remote host. One of the following must be + specified: an ipv4 address, an ipv6 address, + or a host name."; + } + leaf port { type inet:port-number; default 514; description - "This leaf specifies the port number used to deliver - messages to the remote server."; + "This leaf specifies the port number used to + deliver messages to the remote server."; + } } + } + } + uses syslog-selector; leaf destination-facility { type identityref { base syslogtypes:syslog-facility; } default syslogtypes:local7; description "This leaf specifies the facility used in messages delivered to the remote server."; } leaf source-interface { type if:interface-ref; description "This leaf sets the source interface for the remote Syslog server. Either the interface name or the interface IP address can be specified. If not set, messages sent to a remote syslog server will contain the IP address of the interface the syslog message uses to exit the network element"; } - leaf vrf-name { - if-feature remote-logging-use-vrf; - type string; - description - "This leaf specifies the name of the virtual routing - facility (VRF) that connects to the syslog server - host. If not set, the default VRF will be used."; - } container syslog-sign { if-feature signed-messages-config; presence "If present, syslog-sign is activated."; description "This container describes the configuration parameters for signed syslog messages as described by RFC 5848."; + reference + "RFC 5848: Signed Syslog Messages"; leaf cert-initial-repeat { type uint16; mandatory true; description "This leaf specifies the number of times each Certificate Block should be sent before the first message is sent."; } leaf cert-resend-delay { type uint16; mandatory true; description - "This leaf specifies the maximum time delay in seconds - until resending the Certificate Block."; + "This leaf specifies the maximum time delay in + seconds until resending the Certificate Block."; } leaf cert-resend-count { type uint16; mandatory true; description "This leaf specifies the maximum number of other syslog messages to send until resending the Certificate Block."; } leaf sig-max-delay { type uint16; mandatory true; description - "This leaf specifies when to generate a new Signature - Block. If this many seconds have elapsed since the - message with the first message number of the - Signature Block was sent, a new Signature Block + "This leaf specifies when to generate a new + Signature Block. If this many seconds have elapsed + since the message with the first message number of + the Signature Block was sent, a new Signature Block should be generated."; } leaf sig-number-resends { type uint16; mandatory true; description "This leaf specifies the number of times a Signature - Block is resent. (It is recommended to select a value - of greater than 0 in particular when the UDP + Block is resent. (It is recommended to select a + value of greater than 0 in particular when the UDP transport [RFC5426] is used.)."; } leaf sig-resend-delay { type uint16; mandatory true; description "This leaf specifies when to send the next Signature Block transmission based on time. If this many seconds have elapsed since the previous sending of this Signature Block, resend it."; } leaf sig-resend-count { type uint16; mandatory true; description "This leaf specifies when to send the next Signature Block transmission based on a count. If this many other syslog messages have been sent since the - previous sending of this Signature Block, resend it."; + previous sending of this Signature Block, resend + it."; } } } } - container terminal-logging-action { + container terminal { description "This container describes the configuration parameters for the terminal logging configuration."; choice user-scope { default all-users; description "This choice describes the option to specify all users or a specific user. The all users case implies that messages will be sent to all terminals"; case all-users { description "This case specifies all users."; container all-users { description - "This container describes the configuration parameters - for all users."; + "This container describes the configuration + parameters for all users."; uses syslog-selector; } } case per-user { if-feature terminal-facility-user-logging-config; description "This case specifies a specific user."; list user-name { key "uname"; description @@ -1036,52 +1082,45 @@ the login name of the user whose terminal session is to receive log messages."; } uses syslog-selector; } } } } } } +} 4.3. A SYSLOG Example Requirement: - Enable global logging of two facilities: - kern - severity critical(1) - auth - severity error(3) - Enable console logging of syslogs of severity critical(1) Here is the example syslog configuration xml: - - - syslogtypes:kernsyslogtypes:critical - - - syslogtypes:authsyslogtypes:error - - - + + + syslogtypes:critical - + + + @@ -1095,27 +1134,25 @@ Cisco Systems, Inc. has implemented the proposed IETF Syslog model for the Nexus 7000 NXOS OS as a prototype, together with an augmentation model for operating system specific Syslog configuration features. Five leaves were implemented in the base IETF model and three leaves were implemented in the Cisco specific augmentation model as follows: Leaf XPATH Sample NXOS CLI Command(s) - syslog:global-logging-action logging level cron 2 - syslog:console-logging-action logging console 1 - syslog:file-logging-action logging logfile mylog.log 2 4096 - syslog:terminal-logging-action logging monitor 2 - syslog:remote-logging-action *logging server server.cisco.com 2 + syslog:log-actions/console logging console 1 + syslog:log-actions/file logging logfile mylog.log 2 4096 + syslog:log-actions/terminal logging monitor 2 + syslog:log-actions/remote *logging server server.cisco.com 2 facility user - use-vrf management *logging source-interface loopback 0 cisco-syslog:logging-timestamp-config logging timestamp milli-seconds cisco-syslog:origin-id-cfg logging origin-id string abcdef cisco-syslog:module-logging logging module 1 *The "logging server" and "logging source-interface" commands were combined into one base model leaf. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. @@ -1153,30 +1190,34 @@ XML: N/A, the requested URI is an XML namespace. This document registers a YANG module in the YANG Module Names registry [RFC6020]. name: syslog namespace: urn:ietf:params:xml:ns:yang:syslog prefix: syslog reference: RFC XXXX 8. Acknowledgements -The authors wish to thank the following who commented on version 00 of this proposal: +The authors wish to thank the following who commented on versions 01 through 03 +of this proposal: +Martin Bjorklund Jim Gibson Jeffrey Haas John Heasley Giles Heron Lisa Huang Jeffrey K Lange +Jan Lindblad Chris Lonvick Juergen Schoenwaelder +Jason Sterne Peter Van Horne Bert Wijnen Aleksandr Zhdankin 9. Change log [RFC Editor: Please remove] 10. References [RFC3164] Lonvick, C., "The BSD syslog Protocol", BCP 81, RFC 3164, August 2001. @@ -1200,13 +1241,13 @@ 2012. Authors' Addresses Clyde Wildes Cisco Systems Inc. Email: cwildes@cisco.com Kiran Agrahara Sreenivasa - Brocade Communications Systems + Cisco Systems, Inc. - Email: kkoushik@brocade.com + Email: kkoushik@cisco.com