[Bug 1276342] Re: Server switch '-n' ignored on logger version 2.20.1 but not later

Mattias Fornander launchpad at fornander.com
Tue Feb 4 21:45:13 UTC 2014


Workaround and confirmation here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684264

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1276342

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

Status in “util-linux” package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1276342/+subscriptions



More information about the foundations-bugs mailing list