Commit 58e80763 authored by Brad Beam's avatar Brad Beam Committed by Seth Vargo
Browse files

[COOK-3190] Specify logs to send to remote server


Signed-off-by: default avatarSeth Vargo <sethvargo@gmail.com>
parent f7696f76
......@@ -68,6 +68,8 @@ See `attributes/default.rb` for default values.
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'
* `node['rsyslog']['logs_to_forward']` - Specifies what logs should be sent to the
remote rsyslog server. Default is all ( \*.\* ).
Recipes
=======
......
......@@ -29,6 +29,7 @@ default["rsyslog"]["max_message_size"] = "2k"
default["rsyslog"]["preserve_fqdn"] = "off"
default["rsyslog"]["high_precision_timestamps"] = false
default["rsyslog"]["repeated_msg_reduction"] = "on"
default["rsyslog"]["logs_to_forward"] = "*.*"
# The most likely platform-specific attributes
default["rsyslog"]["service_name"] = "rsyslog"
......
<% case @protocol -%>
<% when "tcp" -%>
*.* @@<%= @server %>:<%= node['rsyslog']['port'] %>
<%= node['rsyslog']['logs_to_forward'] %> @@<%= @server %>:<%= node['rsyslog']['port'] %>
<% when "udp" -%>
*.* @<%= @server %>:<%= node['rsyslog']['port'] %>
<%= node['rsyslog']['logs_to_forward'] %> @<%= @server %>:<%= node['rsyslog']['port'] %>
<% end -%>
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