Commit 49b92af0 authored by groknix's avatar groknix
Browse files

Adds RepeatedMsgReduction attribute

Adds RepeatedMsgReduction attribute to enable
the flexibility to turn it off when needed.
Default remains set to 'on'

See http://tickets.opscode.com/browse/COOK-3253
parent 90bb0731
......@@ -66,6 +66,8 @@ See `attributes/default.rb` for default values.
compatibility purposes.
* `node['rsyslog']['high_precision_timestamps']` - Enable high precision
timestamps, instead of the "old style" format. Default is 'false'.
* `node['rsyslog']['repeated_msg_reduction']` - Value of `$RepeatedMsgReduction`
configuration directive in `/etc/rsyslog.conf`. Default is 'on'
Recipes
=======
......
......@@ -28,6 +28,7 @@ default["rsyslog"]["per_host_dir"] = "%$YEAR%/%$MONTH%/%$DAY%/%HOST
default["rsyslog"]["max_message_size"] = "2k"
default["rsyslog"]["preserve_fqdn"] = "off"
default["rsyslog"]["high_precision_timestamps"] = false
default["rsyslog"]["repeated_msg_reduction"] = "on"
# The most likely platform-specific attributes
default["rsyslog"]["service_name"] = "rsyslog"
......
......@@ -78,6 +78,11 @@ attribute "rsyslog/preserve_fqdn",
:description => "Specifies if the short or full host name will be used. The default off setting is more compatible.",
:default => "off"
attribute "rsyslog/repeated_msg_reduction",
:display_name => "Filter duplicated messages",
:description => "Specifies whether or not repeated messages should be reduced.",
:default => "on"
attribute "rsyslog/priv_seperation",
:display_name => "Privilege separation",
:description => "Whether or not to make use of Rsyslog privilege separation",
......
......@@ -46,7 +46,7 @@ $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<% end -%>
# Filter duplicated messages
$RepeatedMsgReduction on
$RepeatedMsgReduction <%= node['rsyslog']['repeated_msg_reduction'] %>
#
# Set temporary directory to buffer syslog queue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment