# Metricbeat/K8s connect directly to elasticsearch or logstash what is best practices here?

**URL:** https://discuss.elastic.co/t/metricbeat-k8s-connect-directly-to-elasticsearch-or-logstash-what-is-best-practices-here/260450
**Category:** Beats
**Tags:** metricbeat
**Created:** [January 7, 2021, 2:21pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-connect-directly-to-elasticsearch-or-logstash-what-is-best-practices-here/260450 "2021-01-07T14:21:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kiril\_Churilov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiril_churilov/32/81895_2.png) [@Kiril\_Churilov](https://discuss.elastic.co/u/Kiril_Churilov)
#### Post date: [January 7, 2021, 2:21pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-connect-directly-to-elasticsearch-or-logstash-what-is-best-practices-here/260450/1 "2021-01-07T14:21:15Z")

</div>

Hello I'm new to ELK stack and beats technology.  
I managed to build and install Elasticseach 3 nodes cluster and kibana on kubernetes in google cloud (GKE)  
and plan to use it in production environment.  
I installed logstash pod and send logs from my app to logstash  
Logstash making parsing and forwarding logs to elasticsearch.  
No I want to finish elasticsearch monitoring part.  
When I clickin Kibana -\> Management -\> Stack monitoring there is no data available.  
(see attached screenshot)

 ![Screen Shot 2021-01-07 at 4.25.41 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53fbc5e4c4c058699dd8ae7ad3b059bd1e474e2a.png)  
Just a guide offering to install Metricbeat to get the metrics and cluster status info.  
My question is DO I need to connect directly to elasticsearch my metricbeat deployment ?  
or should I connect it to Logstash pod ?  
I'm confused here ?  
Please share your experience.  
Thank you.

---

<div class="post-metadata">

### Author: ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)
#### Post date: [January 7, 2021, 2:59pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-connect-directly-to-elasticsearch-or-logstash-what-is-best-practices-here/260450/2 "2021-01-07T14:59:23Z")

</div>

Elasticsearch itself can provide information about its health so I would say that there is no need to involve Logstash if you just want to monitor ES.

> **[Collecting Elasticsearch monitoring data with Metricbeat | Elasticsearch...](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-metricbeat.html)**

---

<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 4, 2021, 4:59pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-connect-directly-to-elasticsearch-or-logstash-what-is-best-practices-here/260450/3 "2021-02-04T16:59:34Z")

</div>

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