Server switch '-n' ignored on logger version 2.20.1 but not later

Bug #1276342 reported by Mattias Fornander
14
This bug affects 3 people
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.kernel.org/pub/linux/utils/util-linux/ shows the same issue but all later versions work fine such as 2.21 and 2.24.1.

Repo:
---
1. Machine#1: /etc/rsyslog.d/10-logger.conf with:
$ModLoad imudp
$UDPServerAddress 192.168.158.15
$UDPServerRun 10514
$ActionFileEnableSync on
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.d/10-logger.conf
---
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-04T14:16:39+00:00 <machine#2> <user>: howdy

TL;DR: Please bump the bsdutil/util-linux version on the next version of Ubuntu to fix remote syslog using logger utility.

Revision history for this message
Mattias Fornander (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85-launchpad-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rlwaer06ogwvqwv9mrqoku2x334) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in util-linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.