Step 1.
Please use the Workflow template to add Syslog and then commit the template.
Note: tvi-stitching between Global-VR and the <WAN/LAN/Overlay)/Twice-NAT-44/Static-Route addition/Syslog config.
will be taken care of automatically.
admin@Branch-cli(config)% show system syslog
server 10.48.87.1 {
enabled;
selector 1 {
negate false;
level all;
facility-list [ all ];
}
}
Step 2:
Please note that confdConfig level changes cannot be reflected in the Template. These changes cannot be performed from the Director-cli template level either.
Under Confd logs, enable the SyslogConfig:
Below is VOS-Config changes needs to acheive logs from audit.log or confd.log exported out to an external Syslog server.
admin@Branch-cli(config)% show confdConfig logs
syslogConfig {
facility daemon;
udp {
enabled;
host 10.48.87.1;
port 514; ##Any custom port can be supported.
}
syslogServers {
server 10.48.87.1 {
port 514; ##Please have both the UDP and Syslog Servers port the same.
version 1;
enabled;
}
}
Step 3:
In this example, we have enabled logs to be parsed for confd.log and audit.log
admin@Branch-cli(config)% show confdConfig logs confdLog
enabled;
file {
enabled;
name /var/log/versa/confd/confd.log;
}
syslog { ##We need to enable syslog.
enabled;
}
admin@Branch-cli(config)% show confdConfig logs auditLog
enabled;
file {
enabled;
name /var/log/versa/confd/audit.log;
}
syslog {
enabled; ###Syslog is enabled here.
}