Forge Home

logwatch

Manage Logwatch on Linux Servers

257,632 downloads

9,324 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.0.0 (latest)
  • 1.0.2
  • 1.0.1 (deleted)
  • 1.0.0
  • 0.2.0
  • 0.1.1
  • 0.1.0
released May 12th 2017
This version is compatible with:
  • Puppet Enterprise >= 3.3.0 < 2015.4.0
  • Puppet >= 3.0.0 < 5.0.0
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jonnyx-logwatch', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jonnyx-logwatch
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jonnyx-logwatch --version 2.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jonnyx/logwatch — version 2.0.0 May 12th 2017

logwatch

Build Status

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with logwatch ¦ What logwatch affects ¦ Setup requirements
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

The logwatch module configures logwatch on Linux bases systems.

Module Description

The logwatch module will manage the installation and configuration of logwatch on Linux based systems.

Setup

NOTE: You must have a proper MTA installed and configured to send mail externally.

Stdlib

This module requires puppetlabs-stdlib >= 3.2.0

What logwatch affects

  • logwatch package.
  • logwatch configuration files.

Usage

Using default values

  class { '::logwatch': }

Using available parameters

 class { '::logwatch':
   mail_to   => [ 'test@test.com ', 'more@test.com' ],
   mail_from => 'puppet@test.com',
   service   => [ 'sshd', 'httpd' ],
 }

Managing ignore.conf

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',
  }

Reference

Classes

Public Classes

  • logwatch: Main class, includes all other classes.
  • logwatch::ignore: Manage the contents of ignore.conf

Private Classes

  • logwatch::install: Handles the packages.
  • logwatch::config: Handles the configuration file.

Parameters

logwatch
output
format
mail_to
mail_from
range
detail
service
package_ensure
package_name
logwatch::ignore
regex

Limitations

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

Development

Contributing