# Not all logs are sent by Promtail to Loki

**URL:** <https://community.grafana.com/t/not-all-logs-are-sent-by-promtail-to-loki/67967>\
**Category:** Grafana Loki\
**Created:** [June 30, 2022, 8:26am UTC](https://community.grafana.com/t/not-all-logs-are-sent-by-promtail-to-loki/67967 "2022-06-30T08:26:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haziflorinmarian](https://avatars.discourse-cdn.com/v4/letter/h/e9a140/32.png) [@haziflorinmarian](https://community.grafana.com/u/haziflorinmarian)\
**Post date:** [June 30, 2022, 8:26am UTC](https://community.grafana.com/t/not-all-logs-are-sent-by-promtail-to-loki/67967/1 "2022-06-30T08:26:02Z")

</div>

**Describe the bug**  
Although the description of the logs matches 11 log files on the server, only 4 of them can be seen in Grafana

**To Reproduce**  
Steps to reproduce the behavior:

1. Started Loki  
latest from Docker’s hub
2. Started Promtail  
promtail, version 2.4.2 (branch: HEAD, revision: 525040a32)
3. Query: `{host="lutetia", filename="/var/log/kern.log"} |= `

**Expected behavior**  
It should appear in the dropdown of the filename and kern.log label, but it does not appear, although there are logs, including from the current day.

**Environment:**

- Infrastructure: Docker for Grafana/Loki and Binary for Promtail
- Deployment tool: docker-compose & git clone

**Screenshots, Promtail config, or terminal output**  
If applicable, add any output to help explain your problem.  
 ![Screenshot from 2022-06-30 11-18-13](https://user-images.githubusercontent.com/74735231/176628768-f63e24f0-b382-4bc4-9480-53e87c621626.png)  
 ![Screenshot from 2022-06-30 11-19-46](https://user-images.githubusercontent.com/74735231/176628773-53bd63db-07a2-4d1c-ab34-5bbcc0f08fa8.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [June 30, 2023, 8:26am UTC](https://community.grafana.com/t/not-all-logs-are-sent-by-promtail-to-loki/67967/2 "2023-06-30T08:26:19Z")

</div>

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