# K8s filebeat to logstash

**URL:** https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [February 25, 2020, 9:15pm UTC](https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923 "2020-02-25T21:15:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)
#### Post date: [February 25, 2020, 9:15pm UTC](https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923/1 "2020-02-25T21:15:22Z")

</div>

By referring the file-beat yml, [Link](https://raw.githubusercontent.com/elastic/beats/master/deploy/kubernetes/filebeat-kubernetes.yaml) K8s sending logs to elastic search directly, Is it possible to send to log stash ?

The main problem I can control the logs from logstash than in the elastic search. Also i can send ti to multiple elk cluster from logstash to logstash than elk to logstash.

thanks.

---

<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: [February 27, 2020, 9:09am UTC](https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923/2 "2020-02-27T09:09:24Z")

</div>

Hi!

You need to configure it accordingly to send [events to Logsatsh](https://www.elastic.co/guide/en/beats/metricbeat/current/logstash-output.html) by setting the output.

C.

---

<div class="post-metadata">

### Author: ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)
#### Post date: [February 27, 2020, 1:50pm UTC](https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923/3 "2020-02-27T13:50:09Z")

</div>

i refereed the link [Logstash](https://discuss.elastic.co/t/separate-indexes-for-each-kubernetes-namespace/169131) and completed to push the logs.

---

<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 26, 2020, 3:50pm UTC](https://discuss.elastic.co/t/k8s-filebeat-to-logstash/220923/4 "2020-03-26T15:50:19Z")

</div>

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