Change keystone log dir
Proposed patch to change keystone and heka log dir from /var/log/kolla/apache2/ to /var/log/kolla/keystone/ Closes-Bug: #1560620 Change-Id: I70c65ceba5a301cc56880313ca86f01bd35676cb
This commit is contained in:
parent
834b5eff5c
commit
493650aa5e
@ -1,5 +1,3 @@
|
||||
{% set apache_dir = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
||||
"/var/log/kolla/keystone/*.log"
|
||||
"/var/log/kolla/{{ apache_dir }}/keystone-apache-*.log"
|
||||
{
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{% set apache_dir = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
||||
[keystone_apache_log_decoder]
|
||||
type = "SandboxDecoder"
|
||||
filename = "lua_decoders/os_keystone_apache_log.lua"
|
||||
@ -9,6 +8,6 @@ filename = "lua_decoders/os_keystone_apache_log.lua"
|
||||
type = "LogstreamerInput"
|
||||
decoder = "keystone_apache_log_decoder"
|
||||
log_directory = "/var/log/kolla"
|
||||
file_match = '{{ apache_dir }}/keystone-apache-(?P<Service>.+)-access\.log\.?(?P<Seq>\d*)$'
|
||||
file_match = 'keystone/keystone-apache-(?P<Service>.+)-access\.log\.?(?P<Seq>\d*)$'
|
||||
priority = ["^Seq"]
|
||||
differentiator = ["keystone-apache-", "Service"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% set apache_dir = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
||||
{% set keystone_log_dir = '/var/log/kolla/keystone' %}
|
||||
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
||||
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_public_port }}
|
||||
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ keystone_admin_port }}
|
||||
@ -12,9 +12,9 @@ Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr
|
||||
<IfVersion >= 2.4>
|
||||
ErrorLogFormat "%{cu}t %M"
|
||||
</IfVersion>
|
||||
ErrorLog "/var/log/kolla/{{ apache_dir }}/keystone-apache-public-error.log"
|
||||
ErrorLog "{{ keystone_log_dir }}/keystone-apache-public-error.log"
|
||||
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
||||
CustomLog "/var/log/kolla/{{ apache_dir }}/keystone-apache-public-access.log" logformat
|
||||
CustomLog "{{ keystone_log_dir }}/keystone-apache-public-access.log" logformat
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:{{ keystone_admin_port }}>
|
||||
@ -26,7 +26,7 @@ Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr
|
||||
<IfVersion >= 2.4>
|
||||
ErrorLogFormat "%{cu}t %M"
|
||||
</IfVersion>
|
||||
ErrorLog "/var/log/kolla/{{ apache_dir }}/keystone-apache-admin-error.log"
|
||||
ErrorLog "{{ keystone_log_dir }}/keystone-apache-admin-error.log"
|
||||
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
||||
CustomLog "/var/log/kolla/{{ apache_dir }}/keystone-apache-admin-access.log" logformat
|
||||
CustomLog "{{ keystone_log_dir }}/keystone-apache-admin-access.log" logformat
|
||||
</VirtualHost>
|
||||
|
@ -24,15 +24,6 @@ if [[ $(stat -c %a ${KEYSTONE_LOG_DIR}) != "755" ]]; then
|
||||
chmod 755 ${KEYSTONE_LOG_DIR}
|
||||
fi
|
||||
|
||||
# Create log dir for Apache logs
|
||||
APACHE_LOG_DIR="/var/log/kolla/${APACHE_DIR}"
|
||||
if [[ ! -d "${APACHE_LOG_DIR}" ]]; then
|
||||
mkdir -p ${APACHE_LOG_DIR}
|
||||
fi
|
||||
if [[ $(stat -c %a ${APACHE_LOG_DIR}) != "755" ]]; then
|
||||
chmod 755 ${APACHE_LOG_DIR}
|
||||
fi
|
||||
|
||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user