Ask Your Question
1

Log files not getting saved in /var/log/puppet folder

asked 2015-11-22 15:40:37 -0500

sandeep gravatar image

updated 2015-11-22 15:42:01 -0500

Hi I have specified log path as /var/log/puppet in puppet.conf file in both puppet master and agent machines, but after puppet run i don't find logs in the respective path in both master and node. Should i do anything else to see logs??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-22 16:23:22 -0500

ramindk gravatar image

Check to see if the logs are being written to /var/log/messages or /var/log/syslog which would be the default. Installing the Puppet package should add an rsyslog config file into /etc/rsyslog/conf.d/ in most Linux distros. If it's exists and looks correct, restarting the rsyslog service should fix the problem.

If restarting rsyslog doesn't fix them problem and you're not seeing logs in syslog or messages, it's likely a permission problem. Look at the default rsyslog config and see which user:group rsyslog is running as. It will use the permissions of this user and group to create files. sudo chown -R correctuser:correctgroup /var/log/puppet , restart rsyslog, and check to see if things are working.

edit flag offensive delete link more

Comments

Thank you. i am seeing messages in /var/log/messages but they are specifying only catalog run status. I am looking for logs which shows every step in the process of catalog. Can i expect such logs in puppet? Because if we have detail logs it will be helpful to debug during catalog failure.

sandeep gravatar imagesandeep ( 2015-11-23 08:57:15 -0500 )edit

If no changes, Puppet logs the catalog status. If changes, Puppet will tell you which files, packages, etc, but not the full diff unless you set verbose = true. If you're doing testing sudo puppet agent --test might be your best option. https://docs.puppetlabs.com/references/latest/man/agent.html

ramindk gravatar imageramindk ( 2015-11-23 10:37:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-22 15:40:37 -0500

Seen: 129 times

Last updated: Nov 22 '15