<p>We'd like to customise the fluentd config that comes out of the box with the kubernetes fluentd-elasticsearch addon.  It seems however that there is no easy way of doing this with the current supplied Docker images.</p>

<p>The following file: <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf" rel="nofollow" title="td-agent.conf">td-agent.conf</a> is copied to the fluentd-es Docker image with no (apparent) way of us being able to customise it.</p>

<p>We need to customise this config file so that we can handle multi-line log entries as one event.  Most likely this would invovle making use of the multiline format (as detailed here <a href="http://docs.fluentd.org/articles/in_tail" rel="nofollow">fluentd in_tail</a>) which would obviously mean a change from the default config file.  </p>

<p>Currently a multi line Java stack trace appears in Kibana as multiple entires which is not ideal.</p>

<p>Unfortunately, I am not aware of any method to customize the config. You can either create your own image, open a feature request at <a href="http://issues.k8s.io" rel="nofollow">issues.k8s.io</a>, or even submit a PR to to enhance fluentd.</p>
