Logging in VYOS

Hi,

Is there a way to enable logging in zebra?
I edited the file zebra.conf file in /etc/quagga/zebra.conf and added log file zebra.log

and when i try to start zebra again, it gives the following error:
can’t open logfile zebra.log

Hi rohitld,

That’s because zebra.log file is not created.
You can reach it with next steps, but keep in mind that this configuration will not survive with upgrade

sudo touch /var/log/zebra.log
sudo chown quagga /var/log/zebra.log

cat /etc/quagga/zebra.conf
log syslog
log facility local7
log file /var/log/zebra.log

sudo service quagga restart
systemctl status quagga.service