.. _cisco.nxos.nxos_logging_global_module:
******************************
cisco.nxos.nxos_logging_global
******************************
**Logging resource module.**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages logging configuration on devices running Cisco NX-OS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dictionary of logging configuration.
|
|
console
dictionary
|
|
Set console logging parameters.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable monitor logging.
|
|
event
dictionary
|
|
Interface events.
|
|
|
link_status
dictionary
|
|
UPDOWN and CHANGE messages.
|
|
|
|
default
boolean
|
|
Default logging configuration used by interfaces not explicitly configured.
|
|
|
|
enable
boolean
|
|
To enable logging overriding port severity configuration.
|
|
|
trunk_status
dictionary
|
|
TRUNK status messages.
|
|
|
|
default
boolean
|
|
Default logging configuration used by interfaces not explicitly configured.
|
|
|
|
enable
boolean
|
|
To enable logging overriding port severity configuration.
|
|
facilities
list
/ elements=dictionary
|
|
Facility parameter for syslog messages.
|
|
|
facility
string
|
|
Facility name.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
history
dictionary
|
|
Modifies severity severity or size for history table.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
size
integer
|
|
Set history table size.
|
|
hosts
list
/ elements=dictionary
|
|
Enable forwarding to Remote Syslog Servers.
|
|
|
facility
string
|
|
Facility to use when forwarding to server.
|
|
|
host
string
|
|
Hostname/IPv4/IPv6 address of the Remote Syslog Server.
|
|
|
port
integer
|
|
Destination Port when forwarding to remote server.
|
|
|
secure
dictionary
|
|
Enable secure connection to remote server.
|
|
|
|
trustpoint
dictionary
|
|
Trustpoint configuration.
|
|
|
|
|
client_identity
string
|
|
Client Identity certificate for mutual authentication.
Trustpoint to use for client certificate authentication.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
use_vrf
string
|
|
Display per-VRF information.
This option is unsupported on MDS switches.
|
|
ip
dictionary
|
|
IP configuration.
This option is unsupported on MDS switches.
|
|
|
access_list
dictionary
|
|
Access-List.
|
|
|
|
cache
dictionary
|
|
Set caching settings.
|
|
|
|
|
entries
integer
|
|
Maximum number of log entries cached in software.
|
|
|
|
|
interval
integer
|
|
Log-update interval (in sec).
|
|
|
|
|
threshold
integer
|
|
Log-update threshold (number of hits)
|
|
|
|
detailed
boolean
|
|
Detailed ACL information.
|
|
|
|
include
dictionary
|
|
Include additional fields in syslogs.
|
|
|
|
|
sgt
boolean
|
|
Include source group tag info in syslogs.
|
|
logfile
dictionary
|
|
Set file logging.
|
|
|
name
string
|
|
Logfile name.
|
|
|
persistent_threshold
integer
|
|
Set persistent logging utilization alert threshold in percentage.
This option is unsupported on MDS switches.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
size
integer
|
|
Enter the logfile size in bytes.
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable logfile.
|
|
module
dictionary
|
|
Set module(linecard) logging.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable module logging.
|
|
monitor
dictionary
|
|
Set terminal line(monitor) logging severity.
|
|
|
severity
string
|
Choices:
- emergency
- alert
- critical
- error
- warning
- notification
- informational
- debugging
|
Set severity severity for console.
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
Enable or disable monitor logging.
|
|
origin_id
dictionary
|
|
Enable origin information for Remote Syslog Server.
|
|
|
hostname
boolean
|
|
Use hostname as origin-id of logging messages.
This option is mutually exclusive with ip and string.
|
|
|
ip
string
|
|
Use ip address as origin-id of logging messages.
This option is mutually exclusive with hostname and string.
|
|
|
string
string
|
|
Use text string as origin-id of logging messages.
This option is mutually exclusive with hostname and ip.
|
|
rate_limit
string
|
Choices:
- enabled
- disabled
|
Enable or disable rate limit for log messages.
|
|
rfc_strict
boolean
|
|
Set RFC to which messages should compliant.
Syslogs will be compliant to RFC 5424.
This option is unsupported on MDS switches.
|
|
source_interface
string
|
|
Enable Source-Interface for Remote Syslog Server.
This option is unsupported on MDS switches.
|
|
timestamp
string
|
Choices:
- microseconds
- milliseconds
- seconds
|
Set logging timestamp granularity.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS 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
- parsed
- gathered
- rendered
|
The state the configuration should be left in.
The states replaced and overridden have identical behaviour for this module.
Refer to examples for more details.
|