My APM server cannot connect to ElasticSearch using apm_system user and ,
I've tried disable and enabled setup.template.overwrite
.
Kibana version:
7.2.0
Elasticsearch version:
7.2.0
APM Server version:
7.2.0
APM Agent language and version:
Browser version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version: I downloaded zips and created Windows services
Fresh install or upgraded from other version? Fresh
Is there anything special in your setup?
I started with no X-Pack security enabled first, then hours later, I enabled security and created password for default system users/accounts
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
APM server logs show that it cannot connect to ElasticSearch due to following logs.
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch(http://localhost:9200)): Connection marked as failed because the onConnect callback failed: error loading Elasticsearch template: could not load template. Elasticsearch returned: couldn't load template: 403 Forbidden: {"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/template/put] is unauthorized for user [apm_system]"}],"type":"security_exception","reason":"action [indices:admin/template/put] is unauthorized for user [apm_system]"},"status":403}. Response body: {"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/template/put] is unauthorized for user [apm_system]"}],"type":"security_exception","reason":"action [indices:admin/template/put] is unauthorized for user [apm_system]"},"status":403}. Template is: {
"index_patterns": [
"apm-7.2.0*"
],
...
}