Browse Source

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)
changes/79/769779/1
Martin Magr 3 months ago
parent
commit
b737516865
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      puppet/services/horizon.yaml

+ 14
- 0
puppet/services/horizon.yaml 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}

Loading…
Cancel
Save