# No log file created while debugging logs with filebeat 5

**URL:** <https://discuss.elastic.co/t/no-log-file-created-while-debugging-logs-with-filebeat-5/77036>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 1, 2017, 5:55pm UTC](https://discuss.elastic.co/t/no-log-file-created-while-debugging-logs-with-filebeat-5/77036 "2017-03-01T17:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Gupta1](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Saurabh\_Gupta1](https://discuss.elastic.co/u/Saurabh_Gupta1)\
**Post date:** [March 1, 2017, 5:55pm UTC](https://discuss.elastic.co/t/no-log-file-created-while-debugging-logs-with-filebeat-5/77036/1 "2017-03-01T17:55:42Z")

</div>

Hi Filebeat team ,

For filebeat 5 debugging logs file is not creating in define path. I m using OS linux.

logging.level: info  
logging.to\_files: true  
logging.to\_syslog: false  
logging.files:  
path: /var/log  
name: mybeat.log  
keepfiles: 7

Not sure what is doing wrong? even i check with so many blocks configuration is same.

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [March 1, 2017, 10:19pm UTC](https://discuss.elastic.co/t/no-log-file-created-while-debugging-logs-with-filebeat-5/77036/2 "2017-03-01T22:19:38Z")

</div>

I'm not able to reproduce your issue. Did you copy and paste

```auto
logging.level: warning
logging.to_files: true
logging.to_syslog: false
logging.files:
  path: /var/log/mybeat
  name: mybeat.log
  keepfiles: 7

```

from the Elastic doc?

[https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html)

When you ran ./filebeat, did you run it with "sudo"?

---

<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:** [March 29, 2017, 10:19pm UTC](https://discuss.elastic.co/t/no-log-file-created-while-debugging-logs-with-filebeat-5/77036/3 "2017-03-29T22:19:51Z")

</div>

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