# Filebeat log folder is not created anymore

**URL:** <https://discuss.elastic.co/t/filebeat-log-folder-is-not-created-anymore/214269>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 8, 2020, 4:00pm UTC](https://discuss.elastic.co/t/filebeat-log-folder-is-not-created-anymore/214269 "2020-01-08T16:00:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flaviu](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Flaviu](https://discuss.elastic.co/u/Flaviu)\
**Post date:** [January 8, 2020, 4:00pm UTC](https://discuss.elastic.co/t/filebeat-log-folder-is-not-created-anymore/214269/1 "2020-01-08T16:00:01Z")

</div>

I have installed filebeat 7.5.1 on a new server, and I realized that the folder in which I want filebeat to save his own logs is not created anymore. This was working in the previous version. I am doing something wrong or it is just a change of behaviour in the way filebeat is working?

I am configuring the log folder in filebeat.yml like this:

```
logging.level: warning
logging.to_files: true
logging.to_syslog: false
logging.metrics.period: 30s
logging.files:
  path: /var/log/filebeat
  name: filebeat.log
  rotateeverybytes: 10485760 # = 500MB
  keepfiles: 7
  permissions: 0644
logging.json: true
```

---

<div class="post-metadata">

**Author:** ![Flaviu](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Flaviu](https://discuss.elastic.co/u/Flaviu)\
**Post date:** [January 8, 2020, 4:43pm UTC](https://discuss.elastic.co/t/filebeat-log-folder-is-not-created-anymore/214269/2 "2020-01-08T16:43:26Z")

</div>

Actually, the problem was not the directory was not created, but there was a change in the way this is working. This fixed my problem

[https://www.elastic.co/guide/en/beats/filebeat/current/running-with-systemd.html](https://www.elastic.co/guide/en/beats/filebeat/current/running-with-systemd.html)

---

<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:** [February 5, 2020, 4:54pm UTC](https://discuss.elastic.co/t/filebeat-log-folder-is-not-created-anymore/214269/3 "2020-02-05T16:54:24Z")

</div>

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