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 f2fc8c8faf)
This commit is contained in:
Martin Magr 2021-01-07 16:52:25 +01:00
parent 09dd295d03
commit b737516865
1 changed files with 14 additions and 0 deletions

View File

@ -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}