summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAnton Lindström <lindztr@gmail.com>2012-07-01 10:26:39 +0200
committerAnton Lindström <lindztr@gmail.com>2012-07-01 10:26:39 +0200
commit6a440ec8c15d6e2c8bc0bc9cd6b85cc1c131d75d (patch)
treec4136a4ff41a0d1ed04473af0b870e4a5ccad3d8 /templates
parent31b02647837955911253725ef789ec263c517e9e (diff)
add port option to rsyslog::client
This commit adds port option for the rsyslog::client class for servers not running on 514.
Diffstat (limited to 'templates')
-rw-r--r--templates/client.conf.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/client.conf.erb b/templates/client.conf.erb
index 1effeaa..67f8274 100644
--- a/templates/client.conf.erb
+++ b/templates/client.conf.erb
@@ -11,9 +11,9 @@ $ActionResumeRetryCount -1 # infinety retries if host is down
<% if scope.lookupvar('rsyslog::client::log_remote') -%>
# Log to remote syslog server using <%= scope.lookupvar('rsyslog::client::remote_type') %>
<% if scope.lookupvar('rsyslog::client::remote_type') == 'tcp' -%>
-*.* @@<%= scope.lookupvar('rsyslog::client::server') -%>:514;RSYSLOG_ForwardFormat
+*.* @@<%= scope.lookupvar('rsyslog::client::server') -%>:<%= scope.lookupvar('rsyslog::client::port') -%>;RSYSLOG_ForwardFormat
<% else -%>
-*.* @<%= scope.lookupvar('rsyslog::client::server') -%>:514;RSYSLOG_ForwardFormat
+*.* @<%= scope.lookupvar('rsyslog::client::server') -%>:<%= scope.lookupvar('rsyslog::client::port') -%>;RSYSLOG_ForwardFormat
<% end -%>
<% end -%>