X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=templates%2Fsyslog-ng.conf.erb;h=c903ced4feaf3e922415d00c4f541fb38e409598;hb=f79882c1f21927fcbbf8dea49db6a7ffaa8e53e8;hp=f811df49f6104a153e211cfc0875a6d1384213de;hpb=8ac30211377dcd7c63376778976bddc31c835016;p=mirror%2Fdsa-puppet.git diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index f811df49f..c903ced4f 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -103,7 +103,9 @@ source s_all { <%end%> # use the following line if you want to receive remote UDP logging messages # (this is equivalent to the "-r" syslogd flag) - # udp(); +<% if hostname == "paganini" -%> + udp(); +<%end%> }; @@ -366,3 +368,14 @@ log { destination(dp_xconsole); }; <%end%> + +<% if hostname == "corelli" -%> +destination loghost-paganini { + udp("192.168.2.10",port(514)); +}; + +log { + source(s_all); + destination(loghost-paganini); +}; +<%end%>