Add log_format variable for apache openstack sites
Add openstack default variables with log formats for apache sites
Aligh log settings with settings from formulas for openstack
services: aodh, barbican, cinder, gnocchi, manila, nova-placement,
panko.
Change-Id: Ie59d341c39e9c50292f4fe28c6227766961d250c
PROD-Related: PROD-28066 (PROD:28066)
(cherry picked from commit 3369142157ac5b705955b9b8754124c4c24cbd4f)
diff --git a/defaults/openstack/init.yml b/defaults/openstack/init.yml
index e4f686b..12f9164 100644
--- a/defaults/openstack/init.yml
+++ b/defaults/openstack/init.yml
@@ -148,6 +148,18 @@
apache_proxy_openstack_aodh_retry: ${_param:apache_proxy_openstack_api_retry}
apache_proxy_openstack_placement_retry: ${_param:apache_proxy_openstack_api_retry}
apache_proxy_openstack_octavia_retry: ${_param:apache_proxy_openstack_api_retry}
+ # Formats for logs for openstack apache sites
+ apache_site_openstack_api_log_format: >-
+ %v:%p %h %l %u %t \"%r\" %>s %D %O \"%{Referer}i\" \"%{User-Agent}i\"
+ apache_site_openstack_aodh_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_barbican_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_cinder_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_gnocchi_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_horizon_log_format: >-
+ %v:%p %{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %D %O \"%{Referer}i\" \"%{User-Agent}i\"
+ apache_site_openstack_manila_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_placement_log_format: ${_param:apache_site_openstack_api_log_format}
+ apache_site_openstack_panko_log_format: ${_param:apache_site_openstack_api_log_format}
# Horizon
# 'direct' mode will require cors on glance side to be enabled.
horizon_images_upload_mode: 'direct'