03354bc99e
This change adds enable_fluentd option and enables some other log shippers to be integrated. When enable_fluentd is "no", syslog server is also disabled. Then, this change also adds syslog parameters to use a syslog server prepared by users. Change-Id: I7c83ef7fe30a6b9ab7385bcee953ad07e96b0a83 Implements: blueprint fluentd-enable-option
46 lines
1.1 KiB
Django/Jinja
46 lines
1.1 KiB
Django/Jinja
<match syslog.{{ syslog_swift_facility }}.**>
|
|
@type copy
|
|
<store>
|
|
@type file
|
|
path /var/log/kolla/swift/swift_latest.*.log
|
|
utc
|
|
append true
|
|
compress gzip
|
|
</store>
|
|
{% if enable_elasticsearch | bool or
|
|
elasticsearch_address != kolla_internal_vip_address %}
|
|
<store>
|
|
type elasticsearch
|
|
host {{ elasticsearch_address }}
|
|
port {{ elasticsearch_port }}
|
|
logstash_format true
|
|
logstash_prefix {{ kibana_log_prefix }}
|
|
flush_interval 15s
|
|
</store>
|
|
{% endif %}
|
|
</match>
|
|
|
|
<match syslog.{{ syslog_haproxy_facility }}.**>
|
|
@type copy
|
|
<store>
|
|
@type file
|
|
path /var/log/kolla/haproxy/haproxy_latest.*.log
|
|
output_tag false
|
|
output_time false
|
|
utc
|
|
append true
|
|
compress gzip
|
|
</store>
|
|
{% if enable_elasticsearch | bool or
|
|
elasticsearch_address != kolla_internal_vip_address %}
|
|
<store>
|
|
type elasticsearch
|
|
host {{ elasticsearch_address }}
|
|
port {{ elasticsearch_port }}
|
|
logstash_format true
|
|
logstash_prefix {{ kibana_log_prefix }}
|
|
flush_interval 15s
|
|
</store>
|
|
{% endif %}
|
|
</match>
|