<p>I am trying to push the stdout logs which we see using below command to the elastic search using fluentd. I am not sure what can I do?</p>

<p><code>Kubectl logs -f &lt;podname&gt;</code></p>

<p>This shows all the SYSOUT logs getting printed via Java application.
I want these logs to be available in elasticsearch.</p>

<p>Did you check <a href="https://docs.fluentd.org/v/0.12/articles/kubernetes-fluentd" rel="nofollow noreferrer">this</a>? </p>

<p>From above link</p>

<ol>
<li>Get fluentd deamonset</li>
<li>Tweak the deamonset manifest file like below(as mentioned in that link)</li>
</ol>

<pre><code>apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: fluentd
  namespace: kube-system
  ...
spec:
    ...
    spec:
      containers:
      - name: fluentd
        image: quay.io/fluent/fluentd-kubernetes-daemonset
        env:
          - name:  FLUENT_ELASTICSEARCH_HOST
            value: "elasticsearch-logging"
          - name:  FLUENT_ELASTICSEARCH_PORT
            value: "9200"
        ...
</code></pre>
