- 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
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
The logwatch module configures logwatch on Linux bases systems.
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 => [ '[email protected] ', '[email protected]' ],
mail_from => '[email protected]',
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',
}
- logwatch: Main class, includes all other classes.
- logwatch::ignore: Manage the contents of
ignore.conf
- logwatch::install: Handles the packages.
- logwatch::config: Handles the configuration file.
output
format
mail_to
mail_from
range
detail
service
package_ensure
package_name
regex
This module has been built on and tested against Puppet 3.
The module has been tested on:
- RedHat Enterprise Linux 6/7
- CentOS 6/7
- Ubuntu 12.04/14.04