{
    "command": "fluentd -c /etc/fluentd/fluentd.conf -o /var/log/kolla/fluentd/fluentd.log",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/fluentd.conf",
            "dest": "/etc/fluentd/fluentd.conf",
            "owner": "fluentd",
            "perm": "0600"
        }{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0600"
        }{% endif %}
    ],
    "permissions": [
        {
            "path": "/var/log/kolla/fluentd",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% for facility in syslog_facilities | selectattr('enabled') %}
        {
            "path": "/var/log/kolla/{{ facility.logdir }}",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% endfor %}
{% if enable_fluentd_systemd | bool %}
        {
            "path": "/var/log/journal",
            "owner": "fluentd:fluentd",
            "recurse": true
        },
{% endif %}
        {
            "path": "/var/lib/fluentd/data",
            "owner": "fluentd:fluentd",
            "recurse": true
        }
    ]

}
