# No logs from /var/containers/\* in kubernetes integration

**URL:** <https://discuss.elastic.co/t/no-logs-from-var-containers-in-kubernetes-integration/342671>\
**Category:** Elastic Agent\
**Tags:** elastic-stack-monitoring, fleet\
**Created:** [September 10, 2023, 7:34am UTC](https://discuss.elastic.co/t/no-logs-from-var-containers-in-kubernetes-integration/342671 "2023-09-10T07:34:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgi.hristov](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@georgi.hristov](https://discuss.elastic.co/u/georgi.hristov)\
**Post date:** [September 10, 2023, 7:34am UTC](https://discuss.elastic.co/t/no-logs-from-var-containers-in-kubernetes-integration/342671/1 "2023-09-10T07:34:30Z")

</div>

Hello guys,

I have been trying to setup ECK lately as a monitoring solution for our local K8s cluster.  
I have used the examples provided in the official documentation for Fleet-managed Elastic Agent on ECK with system and kubernetes integration.  
I have only changed the namespace of the resource and am also using the latest version 8.9.1 for elasticsearch, kibana and agent resource.

Everything is default and it seems to be working as expected, I have all the metrics on the dashboards for K8s, but for some reason I dont have kubernetes.container\_logs dataset which is by default. I only get metrics and no logs.

 ![Screenshot from 2023-09-10 10-19-44](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9b240c182139d6c5a39201edd490d911a5240d9.png)

I have tried modifying the expression in kubernetes log path from /var/log/containers/_${data.kubernetes.container.id}.log which is the default one to more broader and inclusive ones like /var/log/containers/_.log. but still nothing.  
I couldnt find any logs that could help out so if you need any particular logs i will gladly provide them.  
Thanks in advance

---

<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:** [October 8, 2023, 7:34am UTC](https://discuss.elastic.co/t/no-logs-from-var-containers-in-kubernetes-integration/342671/2 "2023-10-08T07:34:43Z")

</div>

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