Server switch '-n' ignored on logger version 2.20.1 but not later
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Logger version 2.20.1 is installed on all Ubuntu from 12.04 LTS to Trusty. That version silently ignores the -n switch that allows you to send entries to remote syslog servers.
Building the 2.20.1 source code from ftp://ftp.
Repo:
---
1. Machine#1: /etc/rsyslog.
$ModLoad imudp
$UDPServerAddress 192.168.158.15
$UDPServerRun 10514
$ActionFileEnab
local5.* /var/log/test.log
---
2. Stop rsyslog and run only the above config file with:
sudo service rsyslog stop
sudo rsyslogd -d -n -4 -f /etc/rsyslog.
---
3. tail -f /var/log/test.log
---
4. Machine#2:
logger -p local5.info -P 10514 -n <Machine1-ip> hellolog
---
Neither the rsyslog debug output nor the tail shows activity with logger 2.20.1.
Later versions of logger work just fine and shows:
2014-02-
TL;DR: Please bump the bsdutil/util-linux version on the next version of Ubuntu to fix remote syslog using logger utility.
Workaround and confirmation here: bugs.debian. org/cgi- bin/bugreport. cgi?bug= 684264
http://