# Exiting: more than one namespace configured accessing config

**URL:** <https://discuss.elastic.co/t/exiting-more-than-one-namespace-configured-accessing-config/164365>\
**Category:** Beats\
**Created:** [January 15, 2019, 8:05pm UTC](https://discuss.elastic.co/t/exiting-more-than-one-namespace-configured-accessing-config/164365 "2019-01-15T20:05:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [January 15, 2019, 8:05pm UTC](https://discuss.elastic.co/t/exiting-more-than-one-namespace-configured-accessing-config/164365/1 "2019-01-15T20:05:28Z")

</div>

Hi

I am using Filebeat to send logs to Logstash for filtering and then to Elasticsearch. Here I am trying to add new beats monitoring feature in the stack and I am getting the following error while starting Filebeat.

```
2019-01-15T19:54:13.569Z ERROR instance/beat.go:667 Exiting: more than one namespace configured accessing config

```

Here is my full `filebeat.yml` configuration file.

```
filebeat:
  prospectors:
  -
    ignore_older: 24h
    paths:
      - /var/log/messages
output:
  logstash:
    hosts: ["<host>:<port>"]
    enabled: true
    loadbalance: true
    ssl:
      certificate_authorities: ["/etc/filebeat/ca.crt"]
shipper:
logging:
xpack.monitoring:
  enabled: true
  ssl.certificate_authorities: ["/etc/filebeat/ca.crt"]
  elasticsearch:
    hosts: ["<es-host>:<es-port>"]
    username: filebeat_user
    password: filebeat_password

```

Please let me know what am i missing here?

Thanks,  
Meet

---

<div class="post-metadata">

**Author:** ![meetdave2611997](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Post date:** [January 16, 2019, 4:41pm UTC](https://discuss.elastic.co/t/exiting-more-than-one-namespace-configured-accessing-config/164365/2 "2019-01-16T16:41:11Z")

</div>

Solved!. Found configuration issue. `ssl.certificate_authorities` shouldn't be under `xpack.monitoring`. It should be under `xpack.monitoring.elasticsearch`.

```
filebeat:
  prospectors:
  -
    ignore_older: 24h
    paths:
      - /var/log/messages
output:
  logstash:
    hosts: ["<host>:<port>"]
    enabled: true
    loadbalance: true
    ssl:
      certificate_authorities: ["/etc/filebeat/ca.crt"]
shipper:
logging:
xpack.monitoring:
  enabled: true
  elasticsearch:
    hosts: ["<es-host>:<es-port>"]
    username: filebeat_user
    password: filebeat_password
    ssl.certificate_authorities: ["/etc/filebeat/ca.crt"]
```

---

<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:** [February 13, 2019, 6:41pm UTC](https://discuss.elastic.co/t/exiting-more-than-one-namespace-configured-accessing-config/164365/3 "2019-02-13T18:41:22Z")

</div>

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