# Override multiline configuration in helm is not working

**URL:** <https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 16, 2020, 3:09pm UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935 "2020-05-16T15:09:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyesmoker](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@eyesmoker](https://discuss.elastic.co/u/eyesmoker)\
**Post date:** [May 16, 2020, 3:09pm UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935/1 "2020-05-16T15:09:46Z")

</div>

Hello,

I am using helm --set command line parameter to override filebeatConfig at run time [https://github.com/elastic/helm-charts/blob/master/filebeat/values.yaml](https://github.com/elastic/helm-charts/blob/master/filebeat/values.yaml)

Errors I get:  
`Error: template: filebeat/templates/daemonset.yaml:29:27: executing "filebeat/templates/daemonset.yaml" at <include (print .Template.BasePath "/configmap.yaml") .>: error calling include: template: filebeat/templates/configmap.yaml:13:35: executing "filebeat/templates/configmap.yaml" at <.Values.filebeatConfig>: range can't iterate over`

I am trying to override as yaml string literal.

```auto
filebeat.yml: |
                        filebeat.inputs:
                        - type: docker
                          containers.ids:
                          - '*'
                          processors:
                          - add_kubernetes_metadata:
                              in_cluster: true

```

Please advise.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [May 18, 2020, 7:26am UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935/2 "2020-05-18T07:26:23Z")

</div>

Could you verify if all indents in the file are correct?

---

<div class="post-metadata">

**Author:** ![eyesmoker](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@eyesmoker](https://discuss.elastic.co/u/eyesmoker)\
**Post date:** [May 19, 2020, 3:59pm UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935/3 "2020-05-19T15:59:35Z")

</div>

thanks for your response. i see the indent is correct. i am not sure how to proceed.

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [May 25, 2020, 1:55pm UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935/4 "2020-05-25T13:55:35Z")

</div>

Hi @eyesmoker,  
Can you provides the full command that you using to to override `filebeatConfig` and your value file?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 22, 2020, 1:55pm UTC](https://discuss.elastic.co/t/override-multiline-configuration-in-helm-is-not-working/232935/5 "2020-06-22T13:55:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
