# Apm server error logs-apm.error not found

**URL:** <https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766>\
**Category:** APM\
**Tags:** docker, server\
**Created:** [March 3, 2022, 4:46pm UTC](https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766 "2022-03-03T16:46:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [March 3, 2022, 4:46pm UTC](https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766/1 "2022-03-03T16:46:31Z")

</div>

Hi,

I have done an upgrade to Elasticsearch 8 and after this, I am finding a strange message in the apm server (8.0.0) logs

"precondition 'apm integration installed' failed: error querying Elasticsearch for integration index templates: unexpected HTTP status: 404 Not Found ({"error":{"root\_cause":[{"type":"resource\_not\_found\_exception","reason":"index template matching **[logs-apm.error] not found"}]**,"type":"resource\_not\_found\_exception","reason":"index template matching [logs-apm.error] not found"},"status":404}): to remediate, please install the apm integration: [https://ela.st/apm-integration-quickstart","service.name":"apm-server","ecs.version":"1.6.0](https://ela.st/apm-integration-quickstart%22,%22service.name%22:%22apm-server%22,%22ecs.version%22:%221.6.0)"}  
"message":"failed to obtain connection to Kibana: fail to get the Kibana version: HTTP GET request to [https://es:5601/api/status](https://es:5601/api/status) fails: Unauthorized: . Response: {"statusCode":401,"error":"Unauthorized","message":"Unauthorized"}.","service.name":"apm-server","ecs.version":"1.6.0"

I am using docker APM config  
image: [docker.elastic.co/apm/apm-server:8.0.0](http://docker.elastic.co/apm/apm-server:8.0.0)  
container\_name: apmserver  
cap\_add: ["CHOWN", "DAC\_OVERRIDE", "SETGID", "SETUID"]  
cap\_drop: ["ALL"]  
ports:  
- 8200:8200  
command: \>  
apm-server -e  
-E apm-server.rum.enabled=true  
-E setup.kibana.host="[https://es:5601](https://es:5601)"  
-E setup.template.settings.index.number\_of\_replicas=1  
-E apm-server.kibana.enabled=true  
-E apm-server.kibana.host="[https://es:5601](https://es:5601)"  
-E output.Elasticsearch.hosts=["[https://es:9200](https://es:9200)"]  
-E output.Elasticsearch.username="userid"  
-E output.Elasticsearch.password="password"

Can you suggest.

Thanks

---

<div class="post-metadata">

**Author:** ![marclop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marclop/32/119339_2.png) [@marclop](https://discuss.elastic.co/u/marclop)\
**Post date:** [March 4, 2022, 5:38am UTC](https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766/2 "2022-03-04T05:38:08Z")

</div>

Hi @swchandu, As you can read from the log message, you need to first install the APM Integration via Kibana, otherwise the necessary data streams, ingest pipelines and index templates won't be set up.

[Quick start | APM User Guide [8.0] | Elastic](https://ela.st/apm-integration-quickstart).

---

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [March 8, 2022, 6:54am UTC](https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766/3 "2022-03-08T06:54:29Z")

</div>

Thanks.  
I have already done this previously. However, when I tried this on a fresh instance & found working. I will remove the existing setup & try.

> [@marclop](#):
>
> otherwise the necessary data streams, ingest pipelines and index templates won't be set up.

I have already done the APM integration as specified on [Quick start with Elastic Cloud | APM User Guide [8.11] | Elastic](https://www.elastic.co/guide/en/apm/guide/current/apm-quick-start.html)  
Step 1. we set fleet server  
Step2: ignored we don't want metrics/file ingestion  
Step3:

---

<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 29, 2022, 2:55am UTC](https://discuss.elastic.co/t/apm-server-error-logs-apm-error-not-found/298766/4 "2022-03-29T02:55:02Z")

</div>

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