7f3cab65f0
Haproxy binds the elasticsearch service to kolla_internal_vip_address but the output templates for fluentd (td-agent) point to a non-existent kolla_external_vip_address. Output should also be able to be sent to an external elasticsearch instance (as per the documentation regarding overriding elasticsearch_address) Change these settings so that fluentd outputs to either the default elasticsearch_address (i.e. kolla_internal_vip_address) or to the external elasticsearch instance. Closes-Bug: #1673990 Change-Id: I081533ae8ea9aad186e9c44e1dee069729931453
92 lines
3.1 KiB
Django/Jinja
92 lines
3.1 KiB
Django/Jinja
{
|
|
"command": "/usr/sbin/td-agent",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/td-agent.conf",
|
|
"dest": "/etc/td-agent/td-agent.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/input/00-global.conf",
|
|
"dest": "/etc/td-agent/input/00-global.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/input/02-mariadb.conf",
|
|
"dest": "/etc/td-agent/input/02-mariadb.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/input/03-rabbitmq.conf",
|
|
"dest": "/etc/td-agent/input/03-rabbitmq.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/input/01-syslog.conf",
|
|
"dest": "/etc/td-agent/input/01-syslog.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/filter/00-record_transformer.conf",
|
|
"dest": "/etc/td-agent/filter/00-record_transformer.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/filter/01-rewrite.conf",
|
|
"dest": "/etc/td-agent/filter/01-rewrite.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/format/apache_access.conf",
|
|
"dest": "/etc/td-agent/format/apache_access.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/format/wsgi_access.conf",
|
|
"dest": "/etc/td-agent/format/wsgi_access.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/format/wsgi_python.conf",
|
|
"dest": "/etc/td-agent/format/wsgi_python.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},{% if enable_elasticsearch | bool or
|
|
( elasticsearch_address != kolla_internal_vip_address ) | bool %}
|
|
{
|
|
"source": "{{ container_config_directory }}/output/01-es.conf",
|
|
"dest": "/etc/td-agent/output/01-es.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
},{% endif %}
|
|
{
|
|
"source": "{{ container_config_directory }}/output/00-local.conf",
|
|
"dest": "/etc/td-agent/output/00-local.conf",
|
|
"owner": "td-agent",
|
|
"perm": "0600"
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/haproxy",
|
|
"owner": "td-agent:td-agent",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/swift",
|
|
"owner": "td-agent:td-agent",
|
|
"recurse": true
|
|
}
|
|
]
|
|
|
|
}
|