Add arbitrary syslog rules on clients

Jonathan Gazeley



9,029 latest version

4.6 quality score

Version information

  • 0.1.0 (latest)
released Oct 30th 2014
This version is compatible with:
  • RedHat

Start using this module


jgazeley/syslog — version 0.1.0 Oct 30th 2014


Table of Contents

  1. Overview
  2. Usage - Configuration options and additional functionality
  3. Limitations - OS compatibility, etc.


A one-maybe-two sentence summary of what the module does/what problem it solves. This is your 30 second elevator pitch for your module. Consider including OS/Puppet version it works with.

This module installs rsyslog on clients - it is not intended for syslog servers. It provides a resource type that can be used to insert arbitrary syslog rules.


Put the classes, types, and resources for customizing, configuring, and doing the fancy stuff with your module here.

To install rsyslog and its base config:

include syslog

To install an arbitrary syslog rule:

syslog::rule { 'radiusd-log':
  command => "if \$programname == \'radiusd\' then /var/log/radius/radius.log\n&~",
  order   => '12',

When using syslog::rule, you can use any valid rsyslog syntax.


Written for CentOS 6. No testing on other platforms although it should be possible to make it work on pretty much everything with minimal changes.