# More than one namespace configured accessing 'output'

**URL:** <https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 30, 2018, 8:35am UTC](https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646 "2018-08-30T08:35:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alsheh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alsheh/32/36799_2.png) [@Alsheh](https://discuss.elastic.co/u/Alsheh)\
**Post date:** [August 30, 2018, 8:35am UTC](https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646/1 "2018-08-30T08:35:36Z")

</div>

I am using two filebeat configuration files. One config file is sending to Elasticsearch (filebeat.yml) and the other is sending to Logstash (filebeat2.yml). I chain these two config files with the following command:

```auto
command: ./filebeat -e -c filebeat.yml -c filebeat2.yml -d "publish"

```

But I get this error:

```auto
filebeat | Exiting: error unpacking config data: more than one namespace configured accessing 'output' (source:'filebeat.yml')

```

filebeat.yml

```auto
filebeat.autodiscover:
  providers:
    - type: docker
      templates:
        - condition:
            contains:
              docker.container.image: redis
          config:
            - module: redis
              log:
                input:
                  type: docker
                  containers:
                    path: '/usr/share/filebeat/containers/'
                    stream: 'all'
                    ids:
                      - '${data.docker.container.id}'
output.elasticsearch:
  hosts: 'elasticsearch:9200'
setup.kibana:
  host: 'kibana:5601'

```

filebeat2.yml

```auto
filebeat.inputs:
- type: log
  paths: '/usr/share/filebeat/some-log-files/*'
output.logstash:
  hosts: 'logstash:5044'

```

Using the following filebeat docker image:

```auto
docker.elastic.co/beats/filebeat:6.4.0

```

Is there any way I can chain/trigger filebeat config files that have different outputs or combine them in one config file using one filebeat instance?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [August 30, 2018, 12:44pm UTC](https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646/2 "2018-08-30T12:44:43Z")

</div>

Filebeat supports only one output, but you configured 2.

You can run either 2 filebeat instances or route all events via logstash.

---

<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:** [September 27, 2018, 12:44pm UTC](https://discuss.elastic.co/t/more-than-one-namespace-configured-accessing-output/146646/3 "2018-09-27T12:44:45Z")

</div>

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