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

Bug #12403

Windows agents should log to a file by default

Added by Josh Cooper almost 3 years ago. Updated almost 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

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


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 almost 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 almost 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 almost 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 almost 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 almost 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