# Metricbeat to logstash problem

**URL:** https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672
**Category:** Metrics
**Created:** [June 1, 2021, 6:27pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672 "2021-06-01T18:27:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![farciarz121](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@farciarz121](https://discuss.elastic.co/u/farciarz121)
#### Post date: [June 1, 2021, 6:27pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/1 "2021-06-01T18:27:49Z")

</div>

Instruction provided on the elastic website show how to configure meatricbeats to monitor stack.  
My setup however is slightly different. I have metricbeats insalled on VM, it passes logs to logstash and logstash talks to elastic cloud.

How to configure .yml file for metricbeat in this case? Which modules I need to enable in metricbeat and finally do I need to send some API request in order to enable monitoring ?

---

<div class="post-metadata">

### Author: ![kay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay/32/51030_2.png) [@kay](https://discuss.elastic.co/u/kay)
#### Post date: [June 1, 2021, 7:08pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/2 "2021-06-01T19:08:14Z")

</div>

Hi @farciarz121 I am assuming you have an on-premise elastic stack you want to monitor on an elastic cloud deployment via metricbeat and logstash.

Depending on which part of the stack is installed on the VM, you want to enable the module in addition to the system module(if needed). You can find all modules we support [here](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html)

This list includes elastic stack components - Elasticsearch, Kibana, and Logstash.

In addition, we also provide out-of-the-box kibana dashboards for most of the modules. those can be loaded (one time) from any metricbeat host, instructions [here](https://www.elastic.co/guide/en/beats/metricbeat/master/load-kibana-dashboards.html)

---

<div class="post-metadata">

### Author: ![farciarz121](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@farciarz121](https://discuss.elastic.co/u/farciarz121)
#### Post date: [June 1, 2021, 7:19pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/3 "2021-06-01T19:19:19Z")

</div>

Thanks Key, I have metric beat installed on prem and logstash as well. Kibana and elastic search are on cloud.

I know the recommendation is to have a separate cluster for monitoring but since this is just for testing, I don't mind using same cluster for monitoring.

If I understand right, In this case, if I need to enable module for logstash with  
` modules enable logstash-xpack`

Correct ?

---

<div class="post-metadata">

### Author: ![kay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay/32/51030_2.png) [@kay](https://discuss.elastic.co/u/kay)
#### Post date: [June 1, 2021, 7:23pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/4 "2021-06-01T19:23:43Z")

</div>

Yes, instructions here [Collect Logstash monitoring data with Metricbeat | Logstash Reference [7.13] | Elastic](https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html)

---

<div class="post-metadata">

### Author: ![farciarz121](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@farciarz121](https://discuss.elastic.co/u/farciarz121)
#### Post date: [June 1, 2021, 7:58pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/5 "2021-06-01T19:58:59Z")

</div>

Awesome, thank you.

---

<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 29, 2021, 7:59pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-problem/274672/6 "2021-06-29T19:59:56Z")

</div>

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