Add support for CustomLog format modification
Operators may want to log additional stuff for Horizon requests like response time. This change adds configurable log format. Change-Id: I308aa085845c17a766dd7df042237b2cfcb6a0d6
This commit is contained in:
parent
7232b74628
commit
583c37038b
@ -73,6 +73,7 @@ horizon_server_name: "{{ ansible_hostname | default('horizon') }}"
|
|||||||
horizon_apache_servertokens: "Prod"
|
horizon_apache_servertokens: "Prod"
|
||||||
horizon_apache_serversignature: "Off"
|
horizon_apache_serversignature: "Off"
|
||||||
horizon_log_level: info
|
horizon_log_level: info
|
||||||
|
horizon_apache_custom_log_format: combined
|
||||||
horizon_dropdown_max_items: 30
|
horizon_dropdown_max_items: 30
|
||||||
horizon_time_zone: UTC
|
horizon_time_zone: UTC
|
||||||
horizon_enforce_password_check: False
|
horizon_enforce_password_check: False
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added ``horizon_apache_custom_log_format`` tunable
|
||||||
|
to the os-horizon role for changing CustomLog format.
|
||||||
|
Default is "combined".
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
LogLevel {{ horizon_log_level }}
|
LogLevel {{ horizon_log_level }}
|
||||||
ErrorLog /var/log/horizon/horizon-error.log
|
ErrorLog /var/log/horizon/horizon-error.log
|
||||||
CustomLog /var/log/horizon/ssl_access.log combined
|
CustomLog /var/log/horizon/ssl_access.log {{ horizon_apache_custom_log_format }}
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
{% if not horizon_external_ssl | bool %}
|
{% if not horizon_external_ssl | bool %}
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user