# 运行./filebeat -c /etc/filebeat/filebeat.yml --setup -e 提示错误

**URL:** <https://discuss.elastic.co/t/filebeat-c-etc-filebeat-filebeat-yml-setup-e/133591>\
**Category:** 中文提问与讨论\
**Created:** [May 28, 2018, 11:05pm UTC](https://discuss.elastic.co/t/filebeat-c-etc-filebeat-filebeat-yml-setup-e/133591 "2018-05-28T23:05:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayshi1985](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jayshi1985](https://discuss.elastic.co/u/jayshi1985)\
**Post date:** [May 28, 2018, 11:05pm UTC](https://discuss.elastic.co/t/filebeat-c-etc-filebeat-filebeat-yml-setup-e/133591/1 "2018-05-28T23:05:38Z")

</div>

如下，运行./filebeat -c /etc/filebeat/filebeat.yml --setup -e，没有找到No directory /usr/share/filebeat/bin/kibana/6，但实际上现在目录路径是/usr/share/filebeat/kibana，这个该如何更改，是否可以直接将kibana目录移到bin下？

root@elk:/usr/share/filebeat/bin# ./filebeat -c /etc/filebeat/filebeat.yml --setup -e  
2018-05-29T06:58:53.629+0800 INFO instance/beat.go:468 Home path: [/usr/share/filebeat/bin] Config path: [/usr/share/filebeat/bin] Data path: [/usr/share/filebeat/bin/data] Logs path: [/usr/share/filebeat/bin/logs]  
2018-05-29T06:58:53.632+0800 INFO instance/beat.go:475 Beat UUID: a8ebad17-46d7-480d-b4cf-c20dbae1e919  
2018-05-29T06:58:53.634+0800 INFO instance/beat.go:213 Setup Beat: filebeat; Version: 6.2.4  
2018-05-29T06:58:53.637+0800 INFO elasticsearch/client.go:145 Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
2018-05-29T06:58:53.638+0800 INFO pipeline/module.go:76 Beat name: elk  
2018-05-29T06:58:53.638+0800 ERROR fileset/modules.go:95 Not loading modules. Module directory not found: /usr/share/filebeat/bin/module  
2018-05-29T06:58:53.638+0800 INFO elasticsearch/client.go:145 Elasticsearch url: [http://localhost:9200](http://localhost:9200)  
2018-05-29T06:58:53.639+0800 INFO [monitoring] log/log.go:97 Starting metrics logging every 30s  
2018-05-29T06:58:53.645+0800 INFO elasticsearch/client.go:690 Connected to Elasticsearch version 6.2.4  
2018-05-29T06:58:53.645+0800 INFO kibana/client.go:69 Kibana url: [http://localhost:5601](http://localhost:5601)  
2018-05-29T06:58:53.686+0800 INFO [monitoring] log/log.go:132 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":0,"time":4},"total":{"ticks":10,"time":20,"value":10},"user":{"ticks":10,"time":16}},"info":{"ephemeral\_id":"ba1f9ceb-fae4-46b5-a537-42d4821ff6fd","uptime":{"ms":63}},"memstats":{"gc\_next":4473924,"memory\_alloc":2943584,"memory\_total":2943584,"rss":20918272}},"filebeat":{"harvester":{"open\_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"cpu":{"cores":1},"load":{"1":0.17,"15":0.1,"5":0.15,"norm":{"1":0.17,"15":0.1,"5":0.15}}}}}}  
2018-05-29T06:58:53.703+0800 INFO [monitoring] log/log.go:133 Uptime: 80.896502ms  
2018-05-29T06:58:53.706+0800 INFO [monitoring] log/log.go:110 Stopping metrics logging.  
2018-05-29T06:58:53.708+0800 ERROR instance/beat.go:667 Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/filebeat/bin/kibana: No directory /usr/share/filebeat/bin/kibana/6  
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/filebeat/bin/kibana: No directory /usr/share/filebeat/bin/kibana/6

---

<div class="post-metadata">

**Author:** ![jayshi1985](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jayshi1985](https://discuss.elastic.co/u/jayshi1985)\
**Post date:** [May 28, 2018, 11:12pm UTC](https://discuss.elastic.co/t/filebeat-c-etc-filebeat-filebeat-yml-setup-e/133591/2 "2018-05-28T23:12:01Z")

</div>

直接将filebeat/Kibana 复制到 filebeat/bin 下，问题解决

---

<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:** [June 25, 2018, 11:12pm UTC](https://discuss.elastic.co/t/filebeat-c-etc-filebeat-filebeat-yml-setup-e/133591/3 "2018-06-25T23:12:06Z")

</div>

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