Allow log path transformation in fluentd glue
authorLars Kellogg-Stedman <lars@redhat.com>
Mon, 11 Sep 2017 16:00:18 +0000 (10:00 -0600)
committerMartin Mágr <mmagr@redhat.com>
Tue, 26 Sep 2017 11:37:13 +0000 (13:37 +0200)
commit265a13a8e5166ca4cd4cecbf64cb8229e3dcd106
tree5598ba5dce7f5559f183218cbe206475f37b99b2
parentbc3dfc5ac3488ad5411ba4b3856dcf0ff1542692
Allow log path transformation in fluentd glue

Logs in a containerized deployment are not in the same location as on
a baremetal deployment. This commit adds the $fluentd_path_transform
paramter to the fluentd glue module. This is a regular expression that
is used to transform log paths.  To use this feature, include in your
hiera configuration something like:

    tripleo::profile::base::logging::fluentd::fluentd_path_transform:
      - /var/log/
      - /var/log/containers/

Change-Id: I585b6877074353b5de62e5efaabfbe62432c473d
Partial-bug: #1716427
(cherry picked from commit 1ff0903a3950bc4adbc8c84b5153df6ca0fb6a3d)
manifests/profile/base/logging/fluentd.pp