Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Puppet

You're reading from   Mastering Puppet Mastering Puppet for network programming enables developers to pull the strings of Puppet and configure enterprise-level environments for optimum performance

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783982189
Length 280 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas Uphill Thomas Uphill
Author Profile Icon Thomas Uphill
Thomas Uphill
Arrow right icon
View More author details
Toc

Syslog


To use syslog, set reports = log in the main section of /etc/puppet/puppet.conf and report=true on all the nodes, as shown in the following snippet:

[main]
    reports = log
[agent]
    report = true

After restarting httpd on our masters, we'll see catalog compilation messages from nodes appearing in our syslog logs. By default, Puppet will use the daemon facility to change the facility set syslogfacility in the [main] section of puppet.conf. To determine your current facility, use the following command:

# puppet master --configprint syslogfacility
daemon

On our system using rsyslog, we can have all Puppet report messages go into a Puppet logfile using syslogfacility = local5, as shown in the following snippet:

[main]
  reports = log
  syslogfacility = local5

Then, in /etc/rsyslog.conf or /etc/syslog.conf (similar syntax), redirect all local5 level messages to puppet.log, as shown in the following snippet:

local5.*           /var/log/puppet.log

Even if you use one of the GUIs in the next...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime