From b7375168656df5f4d332d89b958a75fe3f10e3bb Mon Sep 17 00:00:00 2001 From: Martin Magr Date: Thu, 7 Jan 2021 16:52:25 +0100 Subject: [PATCH] Add possibility to set logging source for Horizon This patch adds HorizonLoggingSource parameter to enable fluentd to tail logs from Horizon. To keep consistency with other services the default value is set as single log located in appropriate log directory, but we also need to enable customer to pass multiple horizon log files also used by httpd. Change-Id: I0161e6d9c76424b301e48b73f1d7b4b071af0676 (cherry picked from commit f2fc8c8fafd1c29c8ddfa0c78b875cb9f48291a7) --- puppet/services/horizon.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/puppet/services/horizon.yaml b/puppet/services/horizon.yaml index f9651de5a3..2c7c62dcd2 100644 --- a/puppet/services/horizon.yaml +++ b/puppet/services/horizon.yaml @@ -89,6 +89,11 @@ parameters: default: '' description: Horizon has a global overrides mechanism available to perform customizations type: string + HorizonLoggingSource: + type: json + default: + tag: openstack.horizon + path: /var/log/horizon/horizon.log conditions: @@ -173,3 +178,12 @@ outputs: service_config_settings: keystone: keystone_enable_member: true + fluentd: + tripleo_fluentd_groups_horizon: + - horizon + tripleo_fluentd_sources_cinder_api: + yaql: + expression: $.data.sources.flatten() + data: + sources: + - {get_param: HorizonLoggingSource}