.. _cisco.iosxr.iosxr_logging_global_module:
********************************
cisco.iosxr.iosxr_logging_global
********************************
**Resource module to configure logging.**
Version added: 2.4.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the logging attributes of Cisco IOSXR network devices
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
dictionary
|
|
A dictionary of logging options.
|
|
archive
dictionary
|
|
logging to a persistent device(disk/harddisk)
|
|
|
archive_length
integer
|
|
The maximum no of weeks of log to maintain.
|
|
|
archive_size
integer
|
|
The total size of the archive.
|
|
|
device
string
|
|
Configure the archive device
|
|
|
file_size
integer
|
|
The maximum file size for a single log file..
|
|
|
frequency
string
|
|
The collection interval for logs.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warnings
|
Logging severity level
|
|
|
threshold
integer
|
|
Threshold percent <1-99>.
|
|
buffered
dictionary
|
|
Set buffered logging parameters
|
|
|
discriminator
list
/ elements=dictionary
|
|
Establish MD-Buffer association
|
|
|
|
match_params
string
|
Choices:
- match1
- match2
- match3
- nomatch1
- nomatch2
- nomatch3
|
Set match/no-match discriminator.
|
|
|
|
name
string
|
|
discriminator name.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warnings
|
Logging severity level
|
|
|
size
integer
|
|
Logging buffer size
|
|
console
dictionary
|
|
Set console logging parameters
|
|
|
discriminator
list
/ elements=dictionary
|
|
Establish MD-Buffer association
|
|
|
|
match_params
string
|
Choices:
- match1
- match2
- match3
- nomatch1
- nomatch2
- nomatch3
|
Set match/no-match discriminator.
|
|
|
|
name
string
|
|
discriminator name.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warning
|
Logging severity level
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable logging.
|
|
correlator
dictionary
|
|
Configure properties of the event correlator
|
|
|
buffer_size
integer
|
|
Configure size of the correlator buffer.
|
|
|
rule_sets
list
/ elements=dictionary
|
|
Configure a specified correlation ruleset.
|
|
|
|
name
string
|
|
Name of the ruleset
|
|
|
|
rulename
list
/ elements=string
|
|
Name of the rule
|
|
|
rules
list
/ elements=dictionary
|
|
Configure a specified correlation rule.
|
|
|
|
context_correlation
boolean
|
|
Specify enable correlation on context.
|
|
|
|
reissue_nonbistate
boolean
|
|
Specify reissue of non-bistate alarms on parent clear.This option is allowed for the rules whose type is stateful.
|
|
|
|
reparent
boolean
|
|
Specify reparent of alarm on parent clear.This option is allowed for the rules whose type is stateful.
|
|
|
|
rule_name
string
|
|
name of rule.
|
|
|
|
rule_type
string
|
Choices:
- stateful
- nonstateful
|
type of rule - stateful or nonstateful.
|
|
|
|
timeout
integer
|
|
Specify timeout.
|
|
|
|
timeout_rootcause
integer
|
|
Specify timeout for root-cause.
|
|
events
dictionary
|
|
Configure event monitoring parameters.
|
|
|
buffer_size
integer
|
|
Set size of the local event buffer.
|
|
|
display_location
boolean
|
|
Include alarm source location in message text.
|
|
|
filter_match
list
/ elements=string
|
|
Configure filter.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warnings
|
Logging severity level
|
|
|
threshold
integer
|
|
Capacity alarm threshold.
|
|
facility
string
|
Choices:
- auth
- cron
- daemon
- kern
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
- lpr
- mail
- news
- sys10
- sys11
- sys12
- sys13
- sys14
- sys9
- syslog
- user
- uucp
|
Facility parameter for syslog messages
|
|
files
list
/ elements=dictionary
|
|
Set file logging.
|
|
|
maxfilesize
integer
|
|
Set max file size.
|
|
|
name
string
|
|
name of file.
|
|
|
path
string
|
|
Set file path.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- info
- notifications
- warning
|
Logging severity level
|
|
format
boolean
|
|
Enable to send the syslog message rfc5424 format .
|
|
history
dictionary
|
|
Configure syslog history table
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warnings
|
Logging severity level
|
|
|
size
integer
|
|
Logging buffer size
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable logging.
|
|
hostnameprefix
string
|
|
Hostname prefix to add on msgs to servers.
|
|
hosts
list
/ elements=dictionary
|
|
Set syslog server IP address and parameters
|
|
|
host
string
|
|
IPv4/Ipv6 address or hostname of the syslog server
|
|
|
port
string
|
Default:
"default"
|
Set <0-65535> non-default Port.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- error
- info
- notifications
- warning
|
Logging severity level
|
|
|
vrf
string
|
Default:
"default"
|
Set VRF option
|
|
ipv4
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
|
Set precedence Please refer vendor document for valid entries.
|
|
ipv6
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
|
Set precedence Please refer vendor document for valid entries.
|
|
localfilesize
integer
|
|
Set size of the local log file
|
|
monitor
dictionary
|
|
Set terminal line (monitor) logging parameters
|
|
|
discriminator
list
/ elements=dictionary
|
|
Establish MD-Buffer association
|
|
|
|
match_params
string
|
Choices:
- match1
- match2
- match3
- nomatch1
- nomatch2
- nomatch3
|
Set match/no-match discriminator.
|
|
|
|
name
string
|
|
discriminator name.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warning
|
Logging severity level
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable logging.
|
|
source_interfaces
list
/ elements=dictionary
|
|
Specify interface for source address in logging transactions
|
|
|
interface
string
|
|
Interface name with number
|
|
|
vrf
string
|
|
VPN Routing/Forwarding instance name
|
|
suppress
dictionary
|
|
Suppress logging behaviour.
|
|
|
apply_rule
string
|
|
Apply suppression rule.
|
|
|
duplicates
boolean
|
|
Suppress consecutive duplicate messages.
|
|
tls_servers
list
/ elements=dictionary
|
|
Secure server over tls.
|
|
|
name
string
|
|
Name for the tls peer configuration.
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warnings
|
Logging severity level
|
|
|
tls_hostname
string
|
|
Name of the logging host.
|
|
|
trustpoint
string
|
|
Name of the trustpoint configured.
|
|
|
vrf
string
|
|
name of vrf.
|
|
trap
dictionary
|
|
Set syslog server logging level
|
|
|
severity
string
|
Choices:
- alerts
- critical
- debugging
- emergencies
- errors
- informational
- notifications
- warning
|
Logging severity level
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable logging.
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS device by executing the command show running-config | include logging.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- parsed
- rendered
|
The state the configuration should be left in
|