Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add possibility to set logging source for Horizon
Browse files Browse the repository at this point in the history
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 f2fc8c8)
  • Loading branch information
paramite authored and holser committed Oct 21, 2020
1 parent 0e4dfbe commit 256f92d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deployment/horizon/horizon-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ parameters:
of hashes, and the hashes should have two items each (name, display)
containing Keystone domain name and a human-readable description of
the domain respectively.
HorizonLoggingSource:
type: json
default:
tag: openstack.horizon
file: /var/log/containers/horizon/horizon.log

parameter_groups:
- label: deprecated
Expand Down Expand Up @@ -234,6 +239,14 @@ outputs:
- {}
ansible_group_vars:
keystone_enable_member: true
service_config_settings:
rsyslog:
tripleo_logging_sources_horizon:
yaql:
expression: $.data.sources.flatten()
data:
sources:
- {get_param: HorizonLoggingSource}
# BEGIN DOCKER SETTINGS
puppet_config:
config_volume: horizon
Expand Down

0 comments on commit 256f92d

Please sign in to comment.