Error loading config file

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

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.

1 Like

Thank you Andrew

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

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

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