The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #12403

Windows agents should log to a file by default

Added by Josh Cooper over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:02/02/2012
Priority:NormalDue date:
Assignee:Josh Cooper% Done:

0%

Category:windows
Target version:2.7.12
Affected Puppet version:2.7.6 Branch:https://github.com/puppetlabs/puppet/pull/494
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

Puppet agent defaults to using syslog. But since syslog is not commonly available on Windows, puppet agent doesn’t log anywhere by default. It is possible to use the --logdest path option, but really we should enable a default :file log destination within the logdir.


Related issues

Related to Puppet - Feature #12392: Support Windows Event Logging and log to it by default Closed 02/02/2012
Related to Puppet - Bug #9595: logs are not flushed completely Closed 09/19/2011
Related to Puppet - Feature #8268: Basic Puppet agent support on Windows Closed 03/18/2011

History

#1 Updated by Josh Cooper over 3 years ago

When running as a service, and a logdest specified, the log output is getting truncated due to #9595.

Thu Feb 09 11:42:38 -0800 2012 Puppet (debug): Finishing transaction 60443412
Thu Feb 09 11:42:38 -0800 2012 Puppet (info): FileBuck

#2 Updated by Anonymous over 3 years ago

Josh Cooper wrote:

When running as a service, and a logdest specified, the log output is getting truncated due to #9595.

…this is nice, but isn’t the root cause of the problem on Windows. Ruby will flush internal buffers safely when it shuts down in the normal case, so something on Windows is causing it to exit uncleanly, or without the normal cleanup from triggering that flush.

#3 Updated by Josh Cooper over 3 years ago

  • Status changed from Accepted to In Topic Branch Pending Review
  • Branch set to https://github.com/puppetlabs/puppet/pull/494

#4 Updated by Anonymous over 3 years ago

  • Status changed from In Topic Branch Pending Review to Merged - Pending Release
  • Target version changed from 2.7.x to 2.7.11

#5 Updated by Matthaus Owens over 3 years ago

  • Status changed from Merged - Pending Release to Closed
  • Target version changed from 2.7.11 to 2.7.12

Released in Puppet 2.7.12rc1

Also available in: Atom PDF