# No logs found for filebeat

**URL:** <https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 3, 2020, 2:00pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519 "2020-12-03T14:00:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 2:00pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/1 "2020-12-03T14:00:59Z")

</div>

Hello,

I am using filebeat 7.10 on Debian machine and I configured it to send data to /var/log/filebeat :

```auto
logging.level: info
logging.to_file: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7
  permissions: 0644

```

and when i see the `/var/log/filebeat/filebeat.log` I just find:

```auto
2020-12-03T10:41:14.621+0100	INFO	instance/beat.go:645	Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2020-12-03T10:41:14.621+0100	INFO	instance/beat.go:653	Beat ID: d45465ab-6750-476a-9f32-f5812968b5e8

```

The permission in the folder /var/log/filebeat:

```auto
Access: (0765/drwxrw-r-x) Uid: ( 0/ root) Gid: ( 0/ root)

```

and the permission in the filebeat file that is created automatically by filebeat:

```auto
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)

```

To run filebeat I am running the command:

```auto
sudo systemctl start filebeat 

```

Knowing that when I run `sudo journalctl -u filebeat.service` I get all the logs  
Any help please!  
Thanks

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fadjar340/32/43610_2.png) [@fadjar340](https://discuss.elastic.co/u/fadjar340)\
**Post date:** [December 3, 2020, 2:59pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/2 "2020-12-03T14:59:27Z")

</div>

Filebeat log is in the `/var/log/messages` or `/var/log/syslog`

Try to run this command:

```auto
tail -f /var/log/messages | grep filebeat

```

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 3:13pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/3 "2020-12-03T15:13:12Z")

</div>

thanks for your answer @fadjar340,  
but I have added these lignes to have a file just for filebeat logs as it's mentionned in the documentation:

> **[Configure logging | Filebeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html)**

> [@Abdelhalim](#):
>
> ```auto
> logging.level: info
> logging.to_file: true
> logging.files:
> path: /var/log/filebeat
> name: filebeat
> keepfiles: 7
> 
> ```

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fadjar340/32/43610_2.png) [@fadjar340](https://discuss.elastic.co/u/fadjar340)\
**Post date:** [December 3, 2020, 3:49pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/4 "2020-12-03T15:49:00Z")

</div>

Try this:

```auto
logging.level: debug
logging.selector: *
logging.to_file: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7

```

Will show everything of the filebeat logs

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 3:58pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/5 "2020-12-03T15:58:21Z")

</div>

Unfortunately even with debug level I am getting no log ☹

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fadjar340/32/43610_2.png) [@fadjar340](https://discuss.elastic.co/u/fadjar340)\
**Post date:** [December 3, 2020, 4:05pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/6 "2020-12-03T16:05:14Z")

</div>

As per documentation:

```auto
logging.level: debug
logging.selector: *
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bfc3d7eaa82550ccab59067e0cfe449dd9c37f33.png)

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 4:06pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/7 "2020-12-03T16:06:31Z")

</div>

Yes I am already using `logging.to_files: true`

---

<div class="post-metadata">

**Author:** ![dacamposol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dacamposol/32/80191_2.png) [@dacamposol](https://discuss.elastic.co/u/dacamposol)\
**Post date:** [December 3, 2020, 4:51pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/8 "2020-12-03T16:51:24Z")

</div>

Take a look, because in the initial post you have `logging.to_file: true` in the configuration instead of logging.to\_file **s** and that could be the problem.

---

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 3, 2020, 4:55pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/9 "2020-12-03T16:55:08Z")

</div>

Ohhh thank you @dacamposol, you were right I didn't pay attention to that, now it's working  
Thanks for you @dacamposol and for you @fadjar340 🙂

---

<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:** [December 31, 2020, 6:55pm UTC](https://discuss.elastic.co/t/no-logs-found-for-filebeat/257519/10 "2020-12-31T18:55:31Z")

</div>

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