Ask Your Question

Puppet agent not logging

asked 2016-09-16 06:45:56 -0500

Edely gravatar image

updated 2016-09-21 07:36:13 -0500

I have been running puppet master and agent in a same node. While master works correctly, it seems the agent is not logging. I checked the /var/log/puppet folder and rsyslog, but they have nothing about the agent. I am using the following configuration:



# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

I have other nodes with only the agent that are logging correctly. Any ideas of what could be causing this? Thanks in advance!

edit retag flag offensive close merge delete


I was thinking that if there is a way to debug the puppet run , I could trace the steps it takes and then compare with the nodes that are logging and then search where they differ. So I started to run puppet agent -t --noop --verbose --debug, but couldn't find anything useful.

Edely gravatar imageEdely ( 2016-09-21 07:42:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-23 09:21:45 -0500

Edely gravatar image

So, I decided to use journalctl to retrieve the logs. They were already available there. All I had to do was grep it:

journalctl | grep puppet

Just one observation: journalctl is non-persistant, which means it throws away the logs at every boot, so if you want to keep your logs you have to change this behaviour.

edit flag offensive delete link more

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


Asked: 2016-09-16 06:45:56 -0500

Seen: 113 times

Last updated: Sep 23 '16