# Missing logs in k8s

**URL:** https://discuss.elastic.co/t/missing-logs-in-k8s/333487
**Category:** Beats
**Tags:** filebeat
**Created:** [May 15, 2023, 4:15pm UTC](https://discuss.elastic.co/t/missing-logs-in-k8s/333487 "2023-05-15T16:15:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![spi\_nik](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@spi\_nik](https://discuss.elastic.co/u/spi_nik)
#### Post date: [May 15, 2023, 4:15pm UTC](https://discuss.elastic.co/t/missing-logs-in-k8s/333487/1 "2023-05-15T16:15:57Z")

</div>

Hello. I've issue with harvest logs from my cluster k8s with filebeat.  
In my config file I use next path:

```auto
symlinks: true
path:
  - /var/log/containers/*-${data.kubernetes.container.id}.log

```

But some my apps write a lot of logs.  
Since this file is symlinks to

```auto
/vat/logs/pods/*some_pods_name*/*container_name*/0.log

```

filebeat sometimes doesn't have time to collect all lines when 0.log was rotate.  
I've tried to change path to 0.log files but since then I don't see any logs in kibana at all. But in logs in filebeat I see that it is find my logs files and starting work with them.  
Could you please suggest me some solution with my problem?

---

<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 12, 2023, 6:16pm UTC](https://discuss.elastic.co/t/missing-logs-in-k8s/333487/2 "2023-06-12T18:16:46Z")

</div>

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