The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
Windows agents should log to a file by default
|Assignee:||Josh Cooper||% Done:|
|Affected Puppet version:||2.7.6||Branch:||https://github.com/puppetlabs/puppet/pull/494|
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.
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
#2 Updated by Daniel Pittman about 2 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.