Report abuse


			
require 'puppet/reports'

Puppet::Reports.register_report(:mylog) do
    desc "Send all received logs to the local log destinations.  Usually
        the log destination is syslog."

    def process
        client = self.host.gsub("..",".")

        self.logs.each do |log|
            log.message = "#{client}: #{log.to_s}"
            Puppet::Util::Log.newmessage(log)
        end
    end
end