summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rw-r--r--manifests/server.pp8
2 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7d767c8..7985883 100644
--- a/README.md
+++ b/README.md
@@ -105,3 +105,10 @@ The following lists all the class parameters this module accepts.
Due to a missing feature in current RELP versions (InputRELPServerBindRuleset option),
remote logging is using TCP. You can switch between TCP and UDP. As soon as there is
a new RELP version which supports setting Rulesets, I will add support for relp back.
+
+By default, rsyslog::server will strip numbers from hostnames. This means the logs of
+multiple servers with the same non-numerical name will be aggregrated in a single
+directory. i.e. www01 www02 and www02 would all log to the www directory.
+
+To log each host to a seperate directory, set the custom_config parameter to
+'rsyslog/server-hostname.conf.erb'
diff --git a/manifests/server.pp b/manifests/server.pp
index 8d8a33e..fdc911f 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -15,8 +15,16 @@
#
# === Examples
#
+# Defaults
+#
# class { 'rsyslog::server': }
#
+# Create seperate directory per host
+#
+# class { 'rsyslog::server':
+# custom_config => 'rsyslog/server-hostname.conf.erb'
+# }
+#
class rsyslog::server (
$enable_tcp = true,
$enable_udp = true,