<p>I'm trying to install metricbeat helm chart to forward my kubernetes metrics to elasticsearch.</p>

<p>Default configuration works but when I configure output to elasticsearch, the pod tell me </p>

<blockquote>
  <blockquote>
    <p>Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'metricbeat.yml')</p>
  </blockquote>
</blockquote>

<p>I download the <a href="https://github.com/helm/charts/blob/master/stable/metricbeat/values.yaml" rel="nofollow noreferrer">values.yaml</a> and modify output.file in both daemonset and deployment from </p>

<pre><code>output.file:
  path: "/usr/share/metricbeat/data"
  filename: metricbeat
  rotate_every_kb: 10000
  number_of_files: 5
</code></pre>

<p>to </p>

<pre><code>output.file:
  enable: false
output.elasticsearch:
  enable: true
  hosts: ["http://192.168.10.156:9200/"]
</code></pre>

<p>How do I modify the config to forward metrics to elasticsearch?</p>

<p>According to <a href="https://www.elastic.co/guide/en/beats/metricbeat/6.x/file-output.html#_literal_enabled_literal_6" rel="noreferrer">the fine manual</a>, the property is actually <code>enabled:</code> not <code>enable:</code> so I would presume you actually want:</p>

<pre><code>output.file:
  enabled: false
</code></pre>

<p>Although to be honest, I always thought you could have as many outputs as you wish, but <a href="https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646" rel="noreferrer">that is clearly not true</a></p>
