# Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'apm-server.yml')

**URL:** <https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571>\
**Category:** APM\
**Created:** [June 18, 2020, 6:15am UTC](https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571 "2020-06-18T06:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [June 18, 2020, 6:15am UTC](https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571/1 "2020-06-18T06:15:34Z")

</div>

There is already an output.elasticsearch configuration in the original docker image, what should I do to close it?

If I set output.elasticsearch.enable: false, how can I output the template of apm-server to elasticsearch?

There are a lot of errors on apm ui, I don’t know what’s going on

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/3/6353ce4553c9b6271cbb5bed96fbad558ad5006b.png)  
[https://paste.ubuntu.com/p/KBrfHnHddc/](https://paste.ubuntu.com/p/KBrfHnHddc/)

> ```
> ---
> apiVersion: v1
> kind: ConfigMap
> metadata:
> name: apm-server-config
> labels:
> app: apm-server
> data:
> apm-server.yml: |-
> apm-server:
> host: "0.0.0.0:8200"
> rum:
> enabled: true
> allow_origins: '*'
> source_mapping.enabled: true
> setup.template.enabled: true
> setup.template.overwrite: true
> setup.template.append_fields:
> - name: http.request.headers
> type: group
> dynamic: true
> - name: http.response.headers
> type: group
> dynamic: true
> - name: transaction.custom
> type: group
> dynamic: true
> - name: transaction.page
> type: group
> dynamic: true
> apm-server.kibana:
> enable: true
> host: "http://192.168.51.115:31562"
> output.elasticsearch:
> enable: false
> hosts: ["http://192.168.51.115:31004"]
> kafka:
> enable: true
> hosts: ["192.168.10.145:9092","192.168.10.146:9092","192.168.10.147:9092"]
> topics:
> - topic: 'apm-%{[processor.event]}'
> partition.round_robin:
> reachable_only: false
> required_acks: 1
> compression: gzip
> max_message_bytes: 1000000  
> kibana:
> enable: true
> host: "http://192.168.51.115:31562"
> path: /kibana
> ---
> apiVersion: v1
> kind: Service
> metadata:
> name: apm-server
> spec:
> selector:
> app: apm-server
> type: ClusterIP
> ports:
> - protocol: TCP
> port: 8200
> targetPort: 8200
> ---
> apiVersion: apps/v1
> kind: Deployment
> metadata:
> name: apm-server
> spec:
> replicas: 1
> selector:
> matchLabels:
> app: apm-server
> template:
> metadata:
> labels:
> app: apm-server
> spec:
> containers:
> - name: apm-server
> image: apm-server:7.7.1
> ports:
> - containerPort: 8200
> name: apm-port
> volumeMounts:
> - name: apm-server-config
> mountPath: /usr/share/apm-server/apm-server.yml
> readOnly: true
> subPath: apm-server.yml
> volumes:
> - name: apm-server-config
> configMap:
> name: apm-server-config
> 
> ```

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [June 18, 2020, 7:00am UTC](https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571/2 "2020-06-18T07:00:07Z")

</div>

Is that "apm-server:7.7.1" image an alias for [docker.elastic.co/apm/apm-server:7.7.1](https://container-library.elastic.co/r/apm/apm-server:7.7.1)? Or have you built your own image? The Docker images we build are configured via the `apm-server.yml` file, and since you're overriding the file I don't understand how you would end up with that error message.

Anyway, there are typos in your config; you should use "enabled" and not "enable". See [Configure the Elasticsearch output | APM User Guide [8.11] | Elastic](https://www.elastic.co/guide/en/apm/server/current/elasticsearch-output.html#_enabled)

> There are a lot of errors on apm ui, I don’t know what’s going on

I don't know either. I'd suggest opening a separate topic for that, and provide the Kibana logs.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [June 18, 2020, 9:09am UTC](https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571/3 "2020-06-18T09:09:19Z")

</div>

> [@axw](#):
>
> [docker.elastic.co/apm/apm-server:7.7.1](http://docker.elastic.co/apm/apm-server:7.7.1)

Thank you for your reply, I am using [docker.elastic.co/apm/apm-server:7.7.1](http://docker.elastic.co/apm/apm-server:7.7.1)  
Sorry, my no certification check character is wrong. I will modify and test again.  
I have a question, is apm ui generated by apmserver template?

---

<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:** [July 9, 2020, 5:09am UTC](https://discuss.elastic.co/t/exiting-error-unpacking-config-data-more-than-one-namespace-configured-accessing-output-source-apm-server-yml/237571/4 "2020-07-09T05:09:24Z")

</div>

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