# Filebeat 6.1 can't store log output to file

**URL:** <https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 19, 2017, 4:46am UTC](https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349 "2017-12-19T04:46:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuxuanlai](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vuxuanlai](https://discuss.elastic.co/u/vuxuanlai)\
**Post date:** [December 19, 2017, 4:46am UTC](https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349/1 "2017-12-19T04:46:14Z")

</div>

Hi there,

When i run filebeat 6.1 with command: ./filebeat -e -c filebeat.yml -d "publish"  
I got the events which pushed to ES but i can't get filebeat log output. Could plz help me?  
My filebeat config as below:

> ```
> filebeat.prospectors:
> 
> - type: log
> enabled: true
> paths:
> - /home/ubuntu/access.log
> 
> filebeat.config.modules:
> path: ${path.config}/modules.d/*.yml
> 
> reload.enabled: false
> 
> setup.kibana:
> host: "localhost:5601"
> 
> output.elasticsearch:
> hosts: ["localhost:9200"]
> 
> logging.level: debug
> logging.to_files: true
> logging.to_syslog: false
> logging.files:
> path: /home/ubuntu/filebeat-6.1.0-linux-x86_64/logs
> name: mybeat.log
> keepfiles: 7
> permissions: 0644
> 
> ```

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 19, 2017, 4:57am UTC](https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349/2 "2017-12-19T04:57:39Z")

</div>

If you use the `-e` option the log output is disabled.

---

<div class="post-metadata">

**Author:** ![vuxuanlai](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vuxuanlai](https://discuss.elastic.co/u/vuxuanlai)\
**Post date:** [December 19, 2017, 5:51am UTC](https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349/3 "2017-12-19T05:51:14Z")

</div>

I got it.  
Thanks ruflin.

---

<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:** [January 16, 2018, 5:51am UTC](https://discuss.elastic.co/t/filebeat-6-1-cant-store-log-output-to-file/112349/4 "2018-01-16T05:51:31Z")

</div>

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