Backport upstream bugfix "$PreserveFQDN on" not working properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsyslog (Ubuntu) |
Fix Released
|
Undecided
|
Louis Bouchard | ||
Precise |
Fix Released
|
Undecided
|
Louis Bouchard | ||
Quantal |
Won't Fix
|
Undecided
|
Louis Bouchard | ||
Raring |
Fix Released
|
Undecided
|
Louis Bouchard |
Bug Description
SRU justification :
The $PreserveFQDN functionality does not work as expected. Even when defining it as 'on', the fully qualified domain name is not reported by rsyslog
Impact :
Unable to have the FQDN added to the hostname in syslog
Fix :
Upstream fix committed to upcoming 7.4 version of rsyslog :
http://
Test Case :
1. Configure rsyslog on a system that has the hostname defined with fully
qualified domain name in /etc/hosts :
192.168.122.10 rsyslogserver.
The hostname -f command should return the hostname with FQDN appended :
$ hostname -f
rsyslogserver.
2. Add the following entry in /etc/rsyslog.conf
$PreserveFQDN on
3. Restart rsyslogd :
$ restart rsyslog
4. Verify in /var/log/syslog that hostname + fqdn appears :
Apr 25 14:13:29 rsyslogserver.
With the current version of rsyslog, only the hostname appears
Regression :
Minimal risk as the value defined by the patch is only used if the $PreserveFQDN variable is defined in /etc/rsyslog.conf, which is absent by default.
Description of the problem :
When adding $PreserveFQDN on in /etc/rsyslog.conf to have the Fully Qualified Domain Name appended to the hostname reported by rsyslog, the functionality does not work and only the hostname is reported.
Original description (which is wrong as the cited commit does not fix the problem)
You will find patch and information here:
http://
Please backport this patch for precise.
Changed in rsyslog (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in rsyslog (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in rsyslog (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in rsyslog (Ubuntu Precise): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in rsyslog (Ubuntu Quantal): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
tags: | added: cts-client-review |
This patch does not seem to fix the PreserveFQDN functionality as expected.
A new bug for this issue with a proposed patch has been submitted upstream :
http:// bugzilla. adiscon. com/show_ bug.cgi? id=426
I'm waiting to hear from the maintainer