Skip to content

Logging

Diagram

Diagram

Classes

configuration (iosxe.devices)

NameTypeConstraintMandatoryDefault Value
loggingClass[logging]No

logging (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
monitor_severityStringNo
buffered_sizeIntegermin: 4096, max: 2147483647No
buffered_severityStringNo
console_severityStringNo
facilityChoiceauth, cron, daemon, kern, local0, local1, local2, local3, local4, local5, local6, local7, lpr, mail, news, sys10, sys11, sys12, sys13, sys14, sys9, syslog, user, uucpNo
history_sizeIntegermin: 0, max: 65535No
history_severityStringNo
trapBooleantrue, falseNo
trap_severityStringNo
origin_id_typeChoicehostname, ip, ipv6No
origin_id_nameStringNo
file_nameStringNo
file_max_sizeIntegermin: 0, max: 4294967295No
file_min_sizeIntegermin: 0, max: 4294967295No
file_severityStringNo
source_interface_typeChoiceLoopback, Vlan, GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernetNo
source_interface_idStringNo
source_interfaces_vrfList[source_interfaces_vrf]No
hostsList[hosts]No

source_interfaces_vrf (iosxe.devices.configuration.logging)

NameTypeConstraintMandatoryDefault Value
vrfStringYes
interface_typeChoiceLoopback, Vlan, GigabitEthernet, TwoGigabitEthernet, FiveGigabitEthernet, TenGigabitEthernet, TwentyFiveGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernetNo
interface_idStringNo

hosts (iosxe.devices.configuration.logging)

NameTypeConstraintMandatoryDefault Value
ipIPYes
vrfStringNo
transport_udp_portsListInteger[min: 1, max: 65535]No
transport_tcp_portsListInteger[min: 1, max: 65535]No
transport_tls_portsList[transport_tls_ports]No

transport_tls_ports (iosxe.devices.configuration.logging.hosts)

NameTypeConstraintMandatoryDefault Value
portIntegermin: 1025, max: 65535Yes
profileStringNo

Examples

iosxe:
devices:
- name: Device1
configuration:
logging:
monitor_severity: informational
buffered_size: 16000
buffered_severity: informational
console_severity: informational
facility: local0
history_size: 100
history_severity: informational
trap: true
trap_severity: informational
origin_id_type: hostname
source_interface: Loopback0
hosts:
- ip: 2001::1
transport_udp_ports:
- 10000
- 10002
transport_tcp_ports:
- 10001
- 10003
transport_tls_ports:
- port: 10004
- ip: 192.168.5.24
vrf: VRF1