# Filebeat is not creating a log file

**URL:** <https://discuss.elastic.co/t/filebeat-is-not-creating-a-log-file/101382>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 21, 2017, 6:25pm UTC](https://discuss.elastic.co/t/filebeat-is-not-creating-a-log-file/101382 "2017-09-21T18:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajstark123](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@ajstark123](https://discuss.elastic.co/u/ajstark123)\
**Post date:** [September 21, 2017, 6:25pm UTC](https://discuss.elastic.co/t/filebeat-is-not-creating-a-log-file/101382/1 "2017-09-21T18:25:16Z")

</div>

I set up my filebeat yml with the following options.

```
logging.level: info
# logging.to_syslog: false
logging.to_files: true
logging.files:
  # path: /opt/pki/filebeat/logs
  path: /tmp/filebeat_logs
  name: filebeat
  rotateeverybytes: 10485760
  keepfiles: 7

```

When I execute the following command line.  
/opt/pki/filebeat/filebeat -e -c /opt/pki/filebeat/filebeat.yml -d "publish" \>/tmp/filebeat\_logs/filebeat\_log\_cmd.txt 2\>&1 &

The /tmp/filebeat\_logs/filebeat\_log\_cmd.txt file is create from the standrd out/error. But the filebeat lof file is never created.

If I remove the redirection to standard out/err. The command will log its output to the terminal window.

We are using filebeat version 5.5.2

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 21, 2017, 10:51pm UTC](https://discuss.elastic.co/t/filebeat-is-not-creating-a-log-file/101382/2 "2017-09-21T22:51:51Z")

</div>

You've posted this in #elasticsearch, you may want to edit the thread and move it to #beats:filebeat if that wasn't what you intended 🙂

---

<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:** [October 19, 2017, 10:52pm UTC](https://discuss.elastic.co/t/filebeat-is-not-creating-a-log-file/101382/3 "2017-10-19T22:52:14Z")

</div>

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