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:
Alexey Dushechkin 2016-06-09 22:26:59 +06:00
parent 7232b74628
commit 583c37038b
3 changed files with 7 additions and 1 deletions

View File

@ -73,6 +73,7 @@ horizon_server_name: "{{ ansible_hostname | default('horizon') }}"
horizon_apache_servertokens: "Prod"
horizon_apache_serversignature: "Off"
horizon_log_level: info
horizon_apache_custom_log_format: combined
horizon_dropdown_max_items: 30
horizon_time_zone: UTC
horizon_enforce_password_check: False

View File

@ -0,0 +1,5 @@
---
features:
- Added ``horizon_apache_custom_log_format`` tunable
to the os-horizon role for changing CustomLog format.
Default is "combined".

View File

@ -17,7 +17,7 @@
LogLevel {{ horizon_log_level }}
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
{% if not horizon_external_ssl | bool %}
SSLEngine on