Re: [Puppet Users] Puppet Reports

49 views
Skip to first unread message
Message has been deleted

Christopher Wood

unread,
Apr 10, 2015, 7:00:36 AM4/10/15
to puppet...@googlegroups.com
You can grab the reports from puppetdb, perhaps? Or there's a bunch of ways to handle reports, you can probably shim in your own if you really need to:

https://docs.puppetlabs.com/references/latest/report.html

On Fri, Apr 10, 2015 at 03:44:26AM -0700, hoize wrote:
> Hi!
>
> Is it possible to log puppet reports with nxlog beside Foreman?
>
> Foreman is very slow, if I have one week of reports from 5 nodes (10 min
> interval).
> My Idea here was to delete the reports after two days on my Masterserver
> with the foreman-rake command.
>
> So it would be great If there would be any way to collect the reports with
> nxlog.
> Thank You!
> Hoize
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [1]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [2]https://groups.google.com/d/msgid/puppet-users/570dcafb-8762-4443-a5f7-c111d22aa086%40googlegroups.com.
> For more options, visit [3]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:puppet-users...@googlegroups.com
> 2. https://groups.google.com/d/msgid/puppet-users/570dcafb-8762-4443-a5f7-c111d22aa086%40googlegroups.com?utm_medium=email&utm_source=footer
> 3. https://groups.google.com/d/optout

Message has been deleted

Christopher Wood

unread,
Apr 13, 2015, 8:07:09 AM4/13/15
to puppet...@googlegroups.com
On Mon, Apr 13, 2015 at 04:09:18AM -0700, hoize wrote:
> Instead of PuppetDB there I have installed MySQL. Yes, of course I can

"Instead of PuppetDB" is usually the point in the conversation where try to let the enthusiastic person suggesting custom work down gently. What makes a custom MySQL+Puppet combination more suited to your requirements than the drop-in combination of PostgreSQL+PuppetDB+Puppet? Especially since the latter gives you the relational database portion if you really need to look behind the api?

(The puppetdb daemon portion isn't analogous to mysql, it's better described as an api which happens to be using a relational database as its backend storage.)

> grab the reports from MySQL, but I think it would be a better way to
> define nxlog in the puppet.conf, where you can choose if the logs should
> be for example stored in logfiles, foreman, and so on. 

I think there's some mixture of terms going on. A puppet report is a json document which is usually stored on disk or in puppetdb or wherever you upload it to. Logs are what puppet spits to syslog, the puppet-agent lines in /var/log/messages on rhel-ish systems.

> Does anybody know a way to configure puppet or nxlog for this issue?

Have nxlog read your syslog (as discussed above, does not handle puppet reports):

http://nxlog-ce.sourceforge.net/nxlog-docs/en/nxlog-reference-manual.html#sources_os_linux

> Am Freitag, 10. April 2015 13:00:36 UTC+2 schrieb Christopher Wood:
>
> You can grab the reports from puppetdb, perhaps? Or there's a bunch of
> ways to handle reports, you can probably shim in your own if you really
> need to:
>
> [1]https://docs.puppetlabs.com/references/latest/report.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [2]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/puppet-users/319ececd-ee3a-4fe2-b39c-1f5dc28a527e%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. https://docs.puppetlabs.com/references/latest/report.html
> 2. mailto:puppet-users...@googlegroups.com
> 3. https://groups.google.com/d/msgid/puppet-users/319ececd-ee3a-4fe2-b39c-1f5dc28a527e%40googlegroups.com?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout

Reply all
Reply to author
Forward
0 new messages