Ask Your Question
0

puppet server 4.0: Log to different file per client?

asked 2015-08-25 18:05:30 -0500

JohnsonEarls gravatar image

Is there any way to make puppet server 4.x log to a different file per client?

Currently, my puppet server is logging to /var/log/puppet/puppetserver/puppetserver.log - it would be great if I could make that something like /var/log/puppet/puppetserver/puppetserver-foo.example.com.log and …/puppetserver-bar.example.com.log, and only log the general puppet server messages to the generic …/puppetserver.log file.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-08-26 00:54:09 -0500

cprice404 gravatar image

Unfortunately, no, that's not currently possible. If you are willing to file a ticket on our issue tracker ( https://tickets.puppetlabs.com/browse... ) we can potentially look into it for the future. Perhaps you could also elaborate a bit on your goal in separating the log files in case there is another solution that is possible today that would help you?

edit flag offensive delete link more

Comments

Just that I can already see problems with people trying to debug puppet issues when we only have a vew agents talking to the server. Once we get up to our full complement of servers, trying to trace through the puppet logs for a particular agent is going to be a nightmare.

JohnsonEarls gravatar imageJohnsonEarls ( 2015-08-26 08:24:18 -0500 )edit

Would the agent logs give you the data that you need?

cprice404 gravatar imagecprice404 ( 2015-08-26 08:43:27 -0500 )edit

No, the agent logs give different information than the server log.

JohnsonEarls gravatar imageJohnsonEarls ( 2015-08-26 11:08:57 -0500 )edit

Can you give an example of a specific type of info you would like to be able to get out of the server log that is not available in the agent logs? I'm just trying to make sure we have a clear understanding of your use case.

cprice404 gravatar imagecprice404 ( 2015-08-27 05:20:29 -0500 )edit

@cprice404 - my puppet agent logs rotated out before I could get a complete look, but it looks like you're right - the pertinent information appears in both agent and server logs. I thought I'd seen errors in the server log that did not appear in the agent log, but I cannot find any such errors now

JohnsonEarls gravatar imageJohnsonEarls ( 2015-08-28 11:48:09 -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

Stats

Asked: 2015-08-25 18:05:30 -0500

Seen: 253 times

Last updated: Aug 26 '15