[Bug 1191460] Re: $PreserveFQDN and $LocalHostName not always used

Evan Broder evan at ebroder.net
Sun Aug 4 10:14:11 UTC 2013


There's a comment at http://bazaar.launchpad.net/~ubuntu-
branches/ubuntu/saucy/rsyslog/saucy/view/head:/tools/syslogd.c#L2428
that says we need to re-call GenerateLocalHostNameProperty after parsing
config, but as far as I can tell, that doesn't happen.

Does adding a call to queryLocalHostname() around line 2958 of
tools/syslogd.c make this work?

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

Title:
  $PreserveFQDN and $LocalHostName not always used

Status in “rsyslog” package in Ubuntu:
  Confirmed

Bug description:
  The $PreserveFQDn and $LocalHostname options are not always used when configured. To be precise, they seem to only be used in messages from rsyslog itself and not from other daemons or applications.
  OS: Ubuntu 13.04
  Rsyslog: 5.8.11-2ubuntu2.2

  Steps to reproduce:

  - Configure $PreserveFQDN or $LocalHostName
  - Restart rsyslog
  - Check in /var/log/syslog. Messages from rsyslog itself will use the fqdn or the configured hostname, messags from sudo, sshd etc etc will only use the plain hostname.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/1191460/+subscriptions




More information about the foundations-bugs mailing list