In 1.1.x, we could configure syslog to send to an IPv6 address with set system syslog host "[a:b:c:d]:514" facility blah level blah. In 1.2.x, "host" can only be an IPv4 literal or a hostname. Any chance we can get back the ability to send to an IPv6 address?
Description
Description
Details
Details
- Version
- 1.2.6-S1
- Is it a breaking change?
- Unspecified (possibly destroys the router)
Related Objects
Related Objects
- Mentioned In
- 1.2.9
rVYOSONEXe54d3526aeec: syslog: T3396: Allow remote IPv6 host
rVYOSONEXce969f3b746b: Merge pull request #1029 from sever-sever/T3396-crux
rVYOSONEX1f94329d11b9: syslog: T3396: Fix template for remote IPv6 host
rVYOSONEX5ea56643b9c7: Merge pull request #998 from sever-sever/T3396-equ
rVYOSONEX190e2681d441: syslog: T3396: Fix remote IPv6 host
rVYOSONEXe874f284b5b2: Merge pull request #764 from sever-sever/T3396
Event Timeline
Comment Actions
Try one of them options
set system static-host-mapping host-name n1.log.local inet '2001:db8::2' set system syslog host n1.log.local facility all set system syslog host n1.log.local port '514'
set system syslog host 2001:db8::2 facility all set system syslog host 2001:db8::2 port '514'
Comment Actions
1.1.8 configuration
set system syslog host [2001:db8::2]:514 facility all level 'all'
Can't migrate to 1.2
Comment Actions
Expected format @[2001:db8::2]:514
# sudo cat /etc/rsyslog.d/vyos-rsyslog.conf ## generated by syslog.py ## ## file based logging $outchannel global,/var/log/messages,262144,/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog *.notice;local7.debug :omfile:$global ## remote logging *.* @[2001:db8::2]:514
Comment Actions
Fixed in VyOS 1.4-rolling-202103110218
set system syslog global facility all level 'info' set system syslog global facility protocols level 'debug' set system syslog host 192.168.122.1 facility all level 'all' set system syslog host 192.168.122.1 port '514' set system syslog host 2001:db8::2 facility all level 'all' set system syslog host 2001:db8::3 facility all level 'all' set system syslog host 2001:db8::3 port '514' set system syslog host 2001:db8::4 facility all level 'all' set system syslog host 2001:db8::4 port '514'
Rsyslog
vyos@r-roll01# sudo cat /etc/rsyslog.d/vyos-rsyslog.conf ## generated by syslog.py ## ## file based logging $outchannel global,/var/log/messages,262144,/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog *.info;local7.debug :omfile:$global ## console logging ## remote logging *.* @192.168.122.1:514 *.* @[2001:db8::2] *.* @[2001:db8::3]:514 *.* @[2001:db8::4]:514
It can be "cherry-picked" to 1.3
Comment Actions
PR for "crux": https://github.com/vyos/vyos-1x/pull/1029
set system syslog global facility all level 'info' set system syslog global facility protocols level 'debug' set system syslog host 192.168.122.1 facility all level 'all' set system syslog host 192.168.122.1 port '514' set system syslog host 2001:db8::2 facility all level 'all' set system syslog host 2001:db8::3 facility all level 'all' set system syslog host 2001:db8::3 port '514' set system syslog host 2001:db8::4 facility all level 'all' set system syslog host 2001:db8::4 port '514'
Generated rsyslog file:
vyos@r12-lts# sudo cat /etc/rsyslog.d/vyos-rsyslog.conf ## generated by syslog.py ## ## file based logging $outchannel global,/var/log/messages,262144,/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog *.info;local7.debug :omfile:$global ## remote logging *.* @192.168.122.1:514 *.* @[2001:db8::2] *.* @[2001:db8::4]:514 *.* @[2001:db8::3]:514 [edit]