Permalink
Browse files

Merge pull request #1 from bpezan/master

splitting out remote node logs
  • Loading branch information...
2 parents 48f33c9 + fc68a96 commit 293fbf1e8008052ee9abfc456469264b5fd0a0f4 @galthaus galthaus committed Jan 28, 2012
@@ -27,6 +27,13 @@
action [ :enable, :start ]
end
+directory "/var/log/nodes" do
+ owner "root"
+ group "root"
+ mode "0644"
+ action :create
+end
+
template "/etc/rsyslog.d/10-crowbar-server.conf" do
owner "root"
group "root"
@@ -7,6 +7,10 @@ $InputTCPServerRun 514
$ModLoad imudp
$UDPServerRun 514
+# split remote logs by hostname
+$template DynaFile,"/var/log/nodes/%HOSTNAME%.log"
+*.* -?DynaFile
+
<% @external_servers.each do |external_server| -%>
*.* @@<%= external_server %>
<% end -%>

0 comments on commit 293fbf1

Please sign in to comment.