Add support for CustomLog format modification
Operators may want to log additional stuff for Keystone requests like response time. This change adds configurable log format. Change-Id: I6c26335877bb3e5de0178d540e3fe72ceac1734c
This commit is contained in:
parent
bbc645cad8
commit
c82a089813
@ -158,6 +158,7 @@ keystone_service_adminurl: "{{ keystone_service_adminurl_v3 }}"
|
||||
|
||||
## Apache setup
|
||||
keystone_apache_log_level: info
|
||||
keystone_apache_custom_log_format: combined
|
||||
keystone_apache_servertokens: "Prod"
|
||||
keystone_apache_serversignature: "Off"
|
||||
keystone_wsgi_threads: 1
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- Added keystone_apache_custom_log_format tunable for
|
||||
changing CustomLog format. Default is "combined".
|
@ -14,7 +14,7 @@
|
||||
|
||||
LogLevel {{ keystone_apache_log_level }}
|
||||
ErrorLog /var/log/keystone/keystone-apache-error.log
|
||||
CustomLog /var/log/keystone/ssl_access.log combined
|
||||
CustomLog /var/log/keystone/ssl_access.log {{ keystone_apache_custom_log_format }}
|
||||
Options +FollowSymLinks
|
||||
|
||||
{% if keystone_ssl | bool and keystone_service_internaluri_proto == "https" -%}
|
||||
@ -72,7 +72,7 @@
|
||||
|
||||
LogLevel {{ keystone_apache_log_level }}
|
||||
ErrorLog /var/log/keystone/keystone-apache-error.log
|
||||
CustomLog /var/log/keystone/ssl_access.log combined
|
||||
CustomLog /var/log/keystone/ssl_access.log {{ keystone_apache_custom_log_format }}
|
||||
Options +FollowSymLinks
|
||||
|
||||
{% if keystone_ssl | bool and keystone_service_adminuri_proto == "https" -%}
|
||||
|
Loading…
Reference in New Issue
Block a user