From the course: Puppet Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Monitor Puppet in ELK

Monitor Puppet in ELK - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

Monitor Puppet in ELK

- [Instructor] Since we have a basic elk stack set up it would be nice to be able to look at our Puppet server logs in there. Logz.io, that's logz with a z, is a hosted elk stack service, and they provide a nice tutorial for setting this up. I'll be loosely following it in this demo. So if you want more details you might wanna look it up. To make this a bit easier we'll need to tell Puppet to log in JSON format, so we can add an additional Puppet server log alongside the flat text log. To do this we'll need to edit the configuration file. First I'm gonna sudo to root so that I have access to the file. Then I'll open the file in etc/puppetlabs/puppetserver/logback. I find XML painful to read. But if you look carefully you can see that there are two appender blocks. There's one right here and one down here. One is for puppetserver.log and one is for puppetserver-status.log. To start, just copy the puppetserver.log appender block. We'll copy this whole block and then just paste it right…

Contents