# Filebeat not able to find logs on microk8

**URL:** <https://discuss.elastic.co/t/filebeat-not-able-to-find-logs-on-microk8/182023>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [May 21, 2019, 2:21pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-find-logs-on-microk8/182023 "2019-05-21T14:21:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srilumpa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srilumpa/32/77018_2.png) [@srilumpa](https://discuss.elastic.co/u/srilumpa)\
**Post date:** [May 21, 2019, 2:21pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-find-logs-on-microk8/182023/1 "2019-05-21T14:21:28Z")

</div>

Hi,

I'm struggling to configure a filebeat container to be able to read logs from containers running on a kubernetes microK8 instance.

On microk8, logs are stored directly in /var/log/containers:

```
# ls /var/log/containers
<pod1-name>_<namespace>_<container-name>-<container_id>.log
<pod2-name>_<namespace>_<container-name>-<container_id>.log
...

```

I have set up the containers.path directive to point to that folder but nothing is loaded. In the filebeat logs I have the following when it starts:

```
2019-05-21T13:08:41.291Z	INFO	log/input.go:138	Configured paths: [/var/log/containers/*/*.log]

```

Does someone know how I can configure the filebeat input to detect those files?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [May 23, 2019, 12:39am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-find-logs-on-microk8/182023/2 "2019-05-23T00:39:39Z")

</div>

Hello looking at your ls output, I think the right path would be:

```auto
/var/log/containers/*.log

```

---

<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:** [June 20, 2019, 12:52am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-find-logs-on-microk8/182023/3 "2019-06-20T00:52:03Z")

</div>

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