
Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca
15 lines
644 B
Django/Jinja
15 lines
644 B
Django/Jinja
{% 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"
|
|
[keystone_apache_log_decoder.config]
|
|
apache_log_pattern = '%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"'
|
|
|
|
[keystone_apache_logstreamer_input]
|
|
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*)$'
|
|
priority = ["^Seq"]
|
|
differentiator = ["keystone-apache-", "Service"]
|