diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | manifests/server.pp | 8 |
2 files changed, 15 insertions, 0 deletions
@@ -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, |