.. _vyos.vyos.vyos_logging_global_module:
*****************************
vyos.vyos.vyos_logging_global
*****************************
**Logging resource module**
Version added: 2.4.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the logging attributes of Vyos network devices
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
dictionary
|
|
A list containing dictionary of logging options
|
|
console
dictionary
|
|
logging to serial console
|
|
|
facilities
list
/ elements=dictionary
|
|
facility configurations for console
|
|
|
|
facility
string
|
Choices:
- all
- auth
- authpriv
- cron
- daemon
- kern
- lpr
- mail
- mark
- news
- protocols
- security
- syslog
- user
- uucp
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
|
Facility for logging
|
|
|
|
severity
string
|
Choices:
- emerg
- alert
- crit
- err
- warning
- notice
- info
- debug
- all
|
logging level
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
enable or disable the command
|
|
files
list
/ elements=dictionary
|
|
logging to file
|
|
|
archive
dictionary
|
|
Log file size and rotation characteristics
|
|
|
|
file_num
integer
|
|
Number of saved files (default is 5)
|
|
|
|
size
integer
|
|
Size of log files (in kilobytes, default is 256)
|
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
enable or disable the command
|
|
|
facilities
list
/ elements=dictionary
|
|
facility configurations
|
|
|
|
facility
string
|
Choices:
- all
- auth
- authpriv
- cron
- daemon
- kern
- lpr
- mail
- mark
- news
- protocols
- security
- syslog
- user
- uucp
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
|
Facility for logging
|
|
|
|
severity
string
|
Choices:
- emerg
- alert
- crit
- err
- warning
- notice
- info
- debug
- all
|
logging level
|
|
|
path
string
|
|
file name or path
|
|
global_params
dictionary
|
|
logging to serial console
|
|
|
archive
dictionary
|
|
Log file size and rotation characteristics
|
|
|
|
file_num
integer
|
|
Number of saved files (default is 5)
|
|
|
|
size
integer
|
|
Size of log files (in kilobytes, default is 256)
|
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
enable or disable the command
|
|
|
facilities
list
/ elements=dictionary
|
|
facility configurations
|
|
|
|
facility
string
|
Choices:
- all
- auth
- authpriv
- cron
- daemon
- kern
- lpr
- mail
- mark
- news
- protocols
- security
- syslog
- user
- uucp
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
|
Facility for logging
|
|
|
|
severity
string
|
Choices:
- emerg
- alert
- crit
- err
- warning
- notice
- info
- debug
- all
|
logging level
|
|
|
marker_interval
integer
|
|
time interval how often a mark message is being sent in seconds (default is 1200)
|
|
|
preserve_fqdn
boolean
|
|
uses FQDN for logging
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
enable or disable the command
|
|
hosts
list
/ elements=dictionary
|
|
logging to serial console
|
|
|
facilities
list
/ elements=dictionary
|
|
facility configurations for host
|
|
|
|
facility
string
|
Choices:
- all
- auth
- authpriv
- cron
- daemon
- kern
- lpr
- mail
- mark
- news
- protocols
- security
- syslog
- user
- uucp
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
|
Facility for logging
|
|
|
|
protocol
string
|
|
syslog communication protocol
|
|
|
|
severity
string
|
Choices:
- emerg
- alert
- crit
- err
- warning
- notice
- info
- debug
- all
|
logging level
|
|
|
hostname
string
|
|
Remote host name or IP address
|
|
|
port
integer
|
|
Destination port (1-65535)
|
|
syslog
dictionary
|
|
logging syslog
|
|
|
state
string
|
Choices:
- enabled
- disabled
|
enable or disable the command
|
|
users
list
/ elements=dictionary
|
|
logging to file
|
|
|
facilities
list
/ elements=dictionary
|
|
facility configurations
|
|
|
|
facility
string
|
Choices:
- all
- auth
- authpriv
- cron
- daemon
- kern
- lpr
- mail
- mark
- news
- protocols
- security
- syslog
- user
- uucp
- local0
- local1
- local2
- local3
- local4
- local5
- local6
- local7
|
Facility for logging
|
|
|
|
severity
string
|
Choices:
- emerg
- alert
- crit
- err
- warning
- notice
- info
- debug
- all
|
logging level
|
|
|
username
string
|
|
user login name
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the VYOS device by executing the command show configuration commands | grep syslog.
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
The states replaced and overridden have identical behaviour for this module.
Refer to examples for more details.
|