# Error loading config file

**URL:** <https://discuss.elastic.co/t/error-loading-config-file/75260>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 16, 2017, 1:49am UTC](https://discuss.elastic.co/t/error-loading-config-file/75260 "2017-02-16T01:49:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hong\_qiu](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@hong\_qiu](https://discuss.elastic.co/u/hong_qiu)\
**Post date:** [February 16, 2017, 1:49am UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/1 "2017-02-16T01:49:35Z")

</div>

I generate a custom beat based on metricbeat and try to run it.  
But it gives me the error like this:

CRIT Exiting: error loading config file: config file ("xxx.yml") can only be writable by the owner but the permissions are "-rw-rw-r--"

Does any one has this problem before?

Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [February 16, 2017, 2:46pm UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/2 "2017-02-16T14:46:15Z")

</div>

The beat will not run if the configuration file is writable by anyone other than the owner. This is for security reasons. So remove the group write permissions (`chmod g-w xxx.yml`).

This is also a `-strict.perms=false` flag that you can pass to disable the check.

---

<div class="post-metadata">

**Author:** ![hong\_qiu](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@hong\_qiu](https://discuss.elastic.co/u/hong_qiu)\
**Post date:** [February 16, 2017, 5:19pm UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/3 "2017-02-16T17:19:07Z")

</div>

Thank you Andrew

---

<div class="post-metadata">

**Author:** ![hong\_qiu](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@hong\_qiu](https://discuss.elastic.co/u/hong_qiu)\
**Post date:** [February 16, 2017, 7:02pm UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/4 "2017-02-16T19:02:57Z")

</div>

Hi Andrew,

I have one more question, which file can I configure the name of index?

currently, I have:

{"total":1,"max\_score":1.2039728,"hits":[{"\_index":"xxxbeat-2017.02.16","\_type":"diagnostic","\_id":"AVpISGlHFNbirvEa1F2k","\_score":1.2039728,"\_source":{"@timestamp":"2017-02-16T18:56:28.458Z"...

I want the index to be like: "index":"diagnostic-2017.02.16","..."

Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [February 16, 2017, 7:46pm UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/5 "2017-02-16T19:46:55Z")

</div>

This is an `index` option in the output configurations. See [https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html#\_index](https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html#_index).

---

<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 16, 2017, 7:47pm UTC](https://discuss.elastic.co/t/error-loading-config-file/75260/6 "2017-03-16T19:47:09Z")

</div>

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