# Metricbeat 6.5.1 - Setup command with flag --path.config ignored

**URL:** <https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 11, 2018, 3:46pm UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405 "2018-12-11T15:46:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)\
**Post date:** [December 11, 2018, 3:46pm UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405/1 "2018-12-11T15:46:08Z")

</div>

Dear all,  
according to "metricbeat help setup" output, --path.config flag is supported. Unfortunately, when running the command line : metricbeat setup -e --path.config /opt/application/metricbeat/current/conf, I get the output 🙂

[root@i-000a5c9b-hidden-database-server-15421269931 bin]# metricbeat setup -e --path.config /opt/application/metricbeat/current/conf --strict.perms=false --v  
2018-12-11T16:34:07.930+0100 INFO instance/beat.go:592 Home path: [/usr/share/metricbeat] Config path: [/etc/metricbeat] Data path: [/var/lib/metricbeat] Logs path: [/var/log/metricbeat]

Meanning that metricbeat does still trigger the default config file /etc/metricbeat/metricbeat.yml

Please note that the flag --path.config is working perfectly with filebeat

Thanks for your support.  
Best Regards. Richard

---

<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 13, 2018, 8:26am UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405/2 "2018-12-13T08:26:03Z")

</div>

Are you running the above directly against the `metricbeat` binary or is `metricbeat` above the startup script? Check where the `metricbeat` file is that you execute above and see if it's a binary or a script.

---

<div class="post-metadata">

**Author:** ![ORich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orich/32/21675_2.png) [@ORich](https://discuss.elastic.co/u/ORich)\
**Post date:** [December 13, 2018, 8:43am UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405/3 "2018-12-13T08:43:30Z")

</div>

> [@ORich](#):
>
> metricbeat setup -e --path.config /opt/application/metricbeat/current/conf --strict.perms=false --v

Thanks Ruflin for your reply,  
I guess I am running directly against the metricbeat binary located in default directory /usr/share/metricbeat/bin. See outputs below for confirmation.  
As a a workaround, I do now load the dashboard by enabling the `setup.dashboards` section of the `metricbeat.yml` config file still located in a customized location.  
In addition, this way, the loading is idempotent unlike the CLI setup command.  
Have a good day.  
Regards. Richard

[root@i-000a5c29-database-server-15421243581 bin]# pwd  
/usr/share/metricbeat/bin  
[root@i-000a5c29-database-server-15421243581 bin]# ls -l  
total 72060  
-rwxr-xr-x 1 root root 72725620 Nov 16 02:39 metricbeat  
-rwxr-xr-x 1 root root 1057147 Nov 16 02:39 metricbeat-god

---

<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 14, 2018, 9:33am UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405/4 "2018-12-14T09:33:32Z")

</div>

Glad you found a solution. I think I miss something obvious in the above because the first version should have worked ☹

---

<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 11, 2019, 9:33am UTC](https://discuss.elastic.co/t/metricbeat-6-5-1-setup-command-with-flag-path-config-ignored/160405/5 "2019-01-11T09:33:33Z")

</div>

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