You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Allow users to specify custom templates to use for `files` and
`forwards` outputs. Users can specify a list of templates to use with
`logging_custom_templates`. Users can specify the default template to use for
all `files` outputs with `logging_files_template_format`, or specify on a per
output basis by using `template`. Users can specify the default template to
use for all `forwards` outputs with `logging_forwards_template_format`, or
specify on a per output basis by using `template`.
Reason: Users need the ability to format log entries in different ways other
than the built-in defaults, using custom templates.
Result: Users can specify custom templates to use for files and forwards
outputs.
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
template: tpl1 # override logging_files_template_format if set
251
+
```
252
+
217
253
### Logging_outputs options
218
254
219
255
`logging_outputs`: A list of following dictionary to configure outputs.
@@ -285,8 +321,6 @@ Available options:
285
321
* `property_op`: Operation in property-based filter; In case of not `!`, put the `property_op` value in quotes; default to `contains`
286
322
* `property_value`: Value in property-based filter; default to `error`
287
323
* `path`: Path to the output file.
288
-
* `logging_files_template_format`: Set default template for the files output.
289
-
Allowed values are `traditional`, `syslog`, and `modern`. Default to `modern`.
290
324
* File/Directory properties - same as corresponding variables of the Ansible `file` module:
291
325
* `mode` - sets the rsyslog `omfile` module `FileCreateMode` parameter
292
326
* `owner` - sets the rsyslog `omfile` module `fileOwner` or `fileOwnerNum` parameter. If the value
@@ -298,6 +332,15 @@ Available options:
298
332
is an integer, set `dirOwnerNum`, otherwise, set `dirOwner`.
299
333
* `dir_group` - sets the rsyslog `omfile` module `dirGroup` or `dirGroupNum` parameter. If the value
300
334
is an integer, set `dirGroupNum`, otherwise, set `dirGroup`.
335
+
* `template`: Template format for the particular files output. Allowed values
336
+
are `traditional`, `syslog`, and `modern`, or one of the templates defined in
337
+
`logging_custom_templates`. Default to `modern`.
338
+
339
+
Global options:
340
+
341
+
`logging_files_template_format`: Set default template for the files output.
342
+
Allowed values are `traditional`, `syslog`, and `modern`, or one of the
343
+
templates defined in `logging_custom_templates`. Default to `modern`.
301
344
302
345
**Note:** Selector options and property-based filter options are exclusive. If Property-based filter options are defined, selector options will be ignored.
303
346
@@ -332,10 +375,15 @@ Available options:
332
375
* `tls`: Set to `true` to encrypt the connection using the default TLS implementation used by the provider. Default to `false`.
333
376
* `pki_authmode`: Specifying the default network driver authentication mode. `x509/name`, `x509/fingerprint`, or `anon` is accepted. Default to `x509/name`.
334
377
* `permitted_server`: Hostname, IP address, fingerprint(sha1) or wildcard DNS domain of the server which this client will be allowed to connect and send logs over TLS. Default to `*.{{ logging_domain }}`
335
-
* `template`: Template format for the particular forwards output. Allowed values are `traditional`, `syslog`, and `modern`. Default to `modern`.
378
+
* `template`: Template format for the particular forwards output. Allowed values
379
+
are `traditional`, `syslog`, and `modern`, or one of the templates defined in
380
+
`logging_custom_templates`. Default to `modern`.
381
+
382
+
Global options:
336
383
337
-
logging_forwards_template_format: Set default template for the forwards output.
338
-
Allowed values are `traditional`, `syslog`, and `modern`. Default to `modern`.
384
+
`logging_forwards_template_format`: Set default template for the forwards
385
+
output. Allowed values are `traditional`, `syslog`, and `modern`, or one of the
386
+
templates defined in `logging_custom_templates`. Default to `modern`.
339
387
340
388
**Note:** Selector options and property-based filter options are exclusive. If Property-based filter options are defined, selector options will be ignored.
0 commit comments