Abstract
| Goal | Automate complex operations on network devices |
| Objectives |
|
| Sections |
|
| Lab |
Automating Complex Operations |
After completing this section, you should be able to forward logging events to a syslog server for log aggregation.
Ansible can automate the process of configuring devices to send logged event information to a syslog server.
The following task configures log aggregation for a VyOS device:
- name: set the logging target
vyos_config:
lines:
- set system syslog host {{ syslog_ipv4addr }} facility local7 level debugThe following task configures log aggregation for an IOS device:
- name: set the logging target
ios_config:
lines:
- service timestamps log datetime
- service timestamps debug datetime
- logging {{ syslog_ipv4addr }}
- logging trap 7