Module for configuring Papertrail with Rsyslog
Tested on Debian GNU/Linux 6.0 Squeeze with Puppet 2.6 and Scientific Linux 6.2 with Puppet 2.7. Patches for other operating systems welcome.
Clone this repo to a papertrail directory under your Puppet modules directory :
git clone git://github.com/Benjamin-Ds/puppet-module-papertrail.git papertrail
node nodename {
class {
'papertrail':
port => 12345,
monitor_files => ['/var/log/daemon.log', '/var/log/nginx/error.log']
}
}
Or
puppet apply -e "class { 'papertrail': monitor_files => ['/var/log/daemon.log', '/var/log/auth.log'], port => 1234 }"