# Using Logstash output for data and Elasticsearch output for x-pack monitoring

**URL:** <https://discuss.elastic.co/t/using-logstash-output-for-data-and-elasticsearch-output-for-x-pack-monitoring/174992>\
**Category:** Beats\
**Created:** [April 2, 2019, 12:56pm UTC](https://discuss.elastic.co/t/using-logstash-output-for-data-and-elasticsearch-output-for-x-pack-monitoring/174992 "2019-04-02T12:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthenning](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthenning/32/40840_2.png) [@matthenning](https://discuss.elastic.co/u/matthenning)\
**Post date:** [April 2, 2019, 12:56pm UTC](https://discuss.elastic.co/t/using-logstash-output-for-data-and-elasticsearch-output-for-x-pack-monitoring/174992/1 "2019-04-02T12:56:14Z")

</div>

Is there a way to use the Logstash output to transmit data collected by the beat and still configure x-pack monitoring?  
Currently x-pack monitoring only supports sending data to Elasticsearch directly which means I have two outputs which is not supported and results in the following error:

`Exiting: error unpacking config data: more than one namespace configured accessing 'output'`

My config:

```auto
output.logstash:
  hosts: ["logstash01:5044", "logstash02:5044"]
  loadbalance: true

xpack.monitoring:
  enabled: true
  elasticsearch:
    hosts: ["elasticsearch01:9200", "elasticsearch02:9200"]
    username: beat_system
    password: "${beats_system}"

```

Imho it's necessary to be able to send Beat data through Logstash while still utilizing x-pack monitoring.

---

<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:** [April 30, 2019, 2:56pm UTC](https://discuss.elastic.co/t/using-logstash-output-for-data-and-elasticsearch-output-for-x-pack-monitoring/174992/2 "2019-04-30T14:56:17Z")

</div>

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