Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter message reduction option #102

Open
gothicx opened this issue Apr 26, 2016 · 2 comments
Open

Add filter message reduction option #102

gothicx opened this issue Apr 26, 2016 · 2 comments

Comments

@gothicx
Copy link
Contributor

gothicx commented Apr 26, 2016

--- LAN/modules/rsyslog/manifests/init.pp       2016-04-26 14:24:18.913197514 +0200
+++ TestLAN/modules/rsyslog/manifests/init.pp   2016-04-26 14:29:27.182061341 +0200
@@ -31,6 +31,7 @@
   $daemon                   = 'USE_DEFAULTS',
   $daemon_ensure            = 'running',
   $daemon_enable            = true,
+  $msg_reduction            = false,
   $is_log_server            = false,
   $log_dir                  = '/srv/logs',
   $log_dir_owner            = 'root',

--- LAN/modules/rsyslog/templates/rsyslog.conf.erb      2016-04-26 14:31:45.396350878 +0200
+++ TestLAN/modules/rsyslog/templates/rsyslog.conf.erb  2016-04-26 14:30:48.156816848 +0200
@@ -57,6 +57,11 @@
 <% end -%>
 <% end -%>

+<% if @msg_reduction -%>
+# Filter duplicated messages
+$RepeatedMsgReduction on
+<% end -%>
+
 # File syncing capability is disabled by default. This feature is usually not required,
 # not useful and an extreme performance hit
 #$ActionFileEnableSync on
@ghoneycutt
Copy link
Owner

Thank you!

Could you please submit a pull request?

@gothicx
Copy link
Contributor Author

gothicx commented Apr 26, 2016

Done. How to do a pull request of two files at the same time ?

gothicx pushed a commit to gothicx/puppet-module-rsyslog that referenced this issue Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants