- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with logwatch ¦ * What logwatch affects ¦ * Setup requirements
- Usage - Configuration options and additional functionality
The logwatch module configures logwatch on Linux bases systems. This is a fork of jonnyx-logwatch module. Improved to use PDK 2.0, puppet native typing and use of hiera.
The logwatch module will manage the installation and configuration of logwatch on Linux based systems.
NOTE: You must have a proper MTA installed and configured to send mail externally.
This module requires puppetlabs-stdlib >= 3.2.0
- logwatch package.
- logwatch configuration files.
class { '::logwatch': } class { '::logwatch':
mail_to => [ 'test@test.com ', 'more@test.com' ],
mail_from => 'puppet@test.com',
service => [ 'sshd', 'httpd' ],
}Add a regex to ignore.conf to suppress that output from the logwatch report
logwatch::ignore { 'my_rule':
regex => 'ignore_lines_that_match_this_regex',
}Alternatievely can be done with hiera:
logwatch::ignore:
my_first_rule:
regex: 'ignore_lines_that_match_this_regex'
my_second_rule:
regex: 'ignore_lines_that_match_that_regex'