[Bug 905419]

Mike-forbes+bugzilla 905419 at bugs.launchpad.net
Tue Dec 20 20:29:01 UTC 2011


I can confirm this patch fixes the issue for me.

Thanks :)


(In reply to comment #2)
> problem is indeed that the date is missing where it was expected. The usual
> syslog() call places it there. I added logic to support missing dates. I have a
> bit boldly claimed in ChangeLog that it fixes this bug, but I had actually not
> time to check it against your code. I'd appreciate if you could give the fix a
> try and report back.
> 
> It will be released as part of 5.8.7.
> 
> Patch available in git:
> 
> http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=f112b51b8d6c358b87ac608112d393adb047ea0f

-- 
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/905419

Title:
  messages to rsyslog without timestamp lose 16 chars

Status in Rsyslog:
  Fix Released
Status in “rsyslog” package in Ubuntu:
  Fix Released

Bug description:
  on boot of a precise image, I did not see messages in /var/log/cloud-
  init.log as expected.

  I noticed that some of them are in /var/log/syslog:
  Dec 16 16:41:30 server-3393 d-init-cfg[INFO]: cloud-init-cfg ['all', 'config']
  Dec 16 16:41:30 server-3393 it__.py[DEBUG]: handling mounts with freq=None and args=[]
  Dec 16 16:41:30 server-3393 SourceEc2.py[DEBUG]: unable to convert swap to a device
  Dec 16 16:41:30 server-3393 kernel: [   83.058563] kjournald starting.  Commit interval 5 seconds
  Dec 16 16:41:30 server-3393 it__.py[DEBUG]: handling ssh-import-id with freq=None and args=[]
  Dec 16 16:41:30 server-3393 sh_import_id.py[DEBUG]: importing ssh ids. cmd = ['sudo', '-Hu', 'ubuntu', 'ssh-import-id', 'smoser']

  I'm not sure where the beginning of those log statements are going.

  cloud-init uses python logging, and places the following content in /etc/rsyslog.d/21-cloudinit.conf:
  # Log cloudinit generated log messages to file
  :syslogtag, isequal, "[CLOUDINIT]" /var/log/cloud-init.log

  # comment out the following line to allow CLOUDINIT messages through.
  # Doing so means you'll also get CLOUDINIT messages in /var/log/syslog
  & ~

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: cloud-init 0.6.2-0ubuntu1
  ProcVersionSignature: User Name 3.2.0-4.10-virtual 3.2.0-rc5
  Uname: Linux 3.2.0-4-virtual x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Fri Dec 16 17:29:28 2011
  Ec2AMI: ami-00000102
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cloud-init
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list