# Collecting logstash stats on K8S with metricbeat

**URL:** https://discuss.elastic.co/t/collecting-logstash-stats-on-k8s-with-metricbeat/302207
**Category:** Beats
**Tags:** metricbeat
**Created:** [April 12, 2022, 10:05am UTC](https://discuss.elastic.co/t/collecting-logstash-stats-on-k8s-with-metricbeat/302207 "2022-04-12T10:05:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)
#### Post date: [April 12, 2022, 10:05am UTC](https://discuss.elastic.co/t/collecting-logstash-stats-on-k8s-with-metricbeat/302207/1 "2022-04-12T10:05:00Z")

</div>

Hi,

I am just starting to move our stack to a containerised environment using K8S. It's all going well so far with Elasticsearch, Kibana and Logstash all running. I usually monitor our logstash pipelines with metricbeat, but can't figure out how to do that when logstash is containerised.

Most documentation regarding metricbeat and kubernetes is about monitoring kubernetes itself rather than how to enable the logstash module.

If anyone has done this, I'd really appreciate some pointers.

Thanks.

---

<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: [May 10, 2022, 12:05pm UTC](https://discuss.elastic.co/t/collecting-logstash-stats-on-k8s-with-metricbeat/302207/2 "2022-05-10T12:05:18Z")

</div>

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