<p>I'm trying to forward kubernetes-event logs to elasticsearch using fluentd.I currently use <code>fluent/fluentd-kubernetes-daemonset:v1.10.1-debian-elasticsearch7-1.0</code>as container image to forward my application logs to elasticsearch cluster.I've searched enough &amp; my problem is that this image doesn't have enough documentation as to accomplishing this task(i.e; forward kubernetes event related logs).</p>
<p>I've found <a href="https://rubygems.org/gems/fluent-plugin-kubernetes-objects" rel="nofollow noreferrer">this</a> plugin from splunk which has desired output but this has overhead like :</p>
<ul>
<li><p>add above plugin's gem to bundler.</p>
</li>
<li><p>install essential tools like <code>make</code> etc.</p>
</li>
<li><p>install the plugin .</p>
</li>
</ul>
<p>Sure I can do above steps using <code>init-container</code>, but above operations are adding ~200MB to disk space .I'd like to know if it can be accomplished with smaller footprint or other way.</p>
<p>Any help is appreciated.</p>
<p>Thanks.</p>

YoganA
<p>You can try this: <a href="https://github.com/opsgenie/kubernetes-event-exporter" rel="nofollow noreferrer">https://github.com/opsgenie/kubernetes-event-exporter</a></p>
<p>It is able to export Kube events to Elasticsearch.</p>
