# Filebeat Not Shipping Container logs from Kubernetes

**URL:** <https://discuss.elastic.co/t/filebeat-not-shipping-container-logs-from-kubernetes/356891>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [April 5, 2024, 8:40pm UTC](https://discuss.elastic.co/t/filebeat-not-shipping-container-logs-from-kubernetes/356891 "2024-04-05T20:40:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 8, 2024, 4:07pm UTC](https://discuss.elastic.co/t/filebeat-not-shipping-container-logs-from-kubernetes/356891/5 "2024-04-08T16:07:38Z")

</div>

> [@paolovalladolid](#):
>
> Next is to configure the index pattern that we need to use. Will report back.

You should look at this cool solution I just showed another .. .Or you will need to setup up all your custom templates, naming etc..etc.. which is fine but it is a lot of work.

> [@Filebeat with multiple path and index](https://discuss.elastic.co/t/filebeat-with-multiple-path-and-index/356487/7):
>
> BTW you can also do this sending direct from Filebeat to Elasticsearch and you will still get all the benefits above that I mentioned. filebeat.inputs: - type: filestream id: my-filestream-id enabled: true paths: - /var/log/\*.log fields\_under\_root: true fields: data\_stream.type: logs data\_stream.dataset: system\_log data\_stream.namespace: default setup.ilm.enabled: false setup.template.enabled: false # setup.template.settings: # index.number\_of\_shards: 1 setup.kiban…

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-not-shipping-container-logs-from-kubernetes/356891)._
