# Logstash on k8s

**URL:** <https://discuss.elastic.co/t/logstash-on-k8s/116515>\
**Category:** Logstash\
**Created:** [January 22, 2018, 5:24pm UTC](https://discuss.elastic.co/t/logstash-on-k8s/116515 "2018-01-22T17:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstantino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/konstantino/32/24666_2.png) [@konstantino](https://discuss.elastic.co/u/konstantino)\
**Post date:** [January 22, 2018, 5:24pm UTC](https://discuss.elastic.co/t/logstash-on-k8s/116515/1 "2018-01-22T17:24:06Z")

</div>

hi everyone,

this is more of a design question:

what would be the best way to handle logstash as it is monitoring several different files (different logs) in a kubernetes environment?

Say we want to monitor 6 different files.

One pod - one logstash instance with multiple pipelines and tags for handling each different file

Or a different pod for each file with its own logstash handling a single file.

The later one seems more elegant (if the pod dies, k8s brings it back up) but still the cluster would have to tolerate several logstashs (and their jvm).

I know this is kinda open-ended but I'm interested in other peoples thoughts on the matter.

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:** [February 19, 2018, 5:24pm UTC](https://discuss.elastic.co/t/logstash-on-k8s/116515/2 "2018-02-19T17:24:14Z")

</div>

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