# How do i output kubernetes Logs to logstash

**URL:** https://discuss.elastic.co/t/how-do-i-output-kubernetes-logs-to-logstash/353880
**Category:** Beats
**Tags:** filebeat
**Created:** [February 22, 2024, 11:36am UTC](https://discuss.elastic.co/t/how-do-i-output-kubernetes-logs-to-logstash/353880 "2024-02-22T11:36:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ataylor](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ataylor](https://discuss.elastic.co/u/ataylor)
#### Post date: [February 22, 2024, 11:36am UTC](https://discuss.elastic.co/t/how-do-i-output-kubernetes-logs-to-logstash/353880/1 "2024-02-22T11:36:22Z")

</div>

Ok So for Context, we have a on prem ELK stack, where we ship via filebeats installed locally, to Logstash, then onto our elasticsearch cluster.

I have now been asked by a stakeholder to help them do the same but from an AKS cluster,

I have had a look on the web for a solution, and found this [Run Filebeat on Kubernetes | Filebeat Reference [7.17] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.17/running-on-kubernetes.html)

but it doesn't detail how to do this for logstash.

Can anyone advise what changes would be needed to the Yaml file to make this work.

TIA

---

<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: [March 21, 2024, 1:37pm UTC](https://discuss.elastic.co/t/how-do-i-output-kubernetes-logs-to-logstash/353880/2 "2024-03-21T13:37:07Z")

</div>

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