# APM Server index template matching \[traces-apm.sampled\] not found

**URL:** <https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677>\
**Category:** APM\
**Tags:** open-telemetry\
**Created:** [November 23, 2022, 5:40pm UTC](https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677 "2022-11-23T17:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenishPatel](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@DenishPatel](https://discuss.elastic.co/u/DenishPatel)\
**Post date:** [November 23, 2022, 5:40pm UTC](https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677/1 "2022-11-23T17:40:09Z")

</div>

**Kibana version** : 8.5.1

**Elasticsearch version** :8.5.1

**APM Server version** :8.5.1

**APM Agent language and version** : Not yet installed

**Browser version** :Chrome 107.0.5304.63

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
Download and extract

**Fresh install or upgraded from other version?** Fresh Install

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. No

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

While starting the APM Server, I see the following logs:  
`{"log.level":"error","@timestamp":"2022-11-23T23:01:31.837+0530","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"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 [traces-apm.sampled] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [traces-apm.sampled] 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"}`  
`{"log.level":"error","@timestamp":"2022-11-23T23:01:36.688+0530","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"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 [traces-apm] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [traces-apm] 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"}`

Also when the server is started and I check for the status of APM Server, I see that the APM Server is not detected.

**Steps to reproduce** :  
Followed the standard steps as per documentation.

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:  
`{"log.level":"error","@timestamp":"2022-11-23T23:01:31.837+0530","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"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 [traces-apm.sampled] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [traces-apm.sampled] 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"}`  
`{"log.level":"error","@timestamp":"2022-11-23T23:01:36.688+0530","log.logger":"beater","log.origin":{"file.name":"beater/waitready.go","file.line":62},"message":"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 [traces-apm] not found\"}],\"type\":\"resource_not_found_exception\",\"reason\":\"index template matching [traces-apm] 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"}`

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [November 24, 2022, 8:14am UTC](https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677/2 "2022-11-24T08:14:50Z")

</div>

Hi @DenishPatel ,  
thanks for reporting this. The error suggests that the APM Integration is not installed, linking here [how to install the APM integration](https://www.elastic.co/guide/en/apm/guide/current/apm-server-configuration.html#_install_the_apm_integration).

---

<div class="post-metadata">

**Author:** ![DenishPatel](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@DenishPatel](https://discuss.elastic.co/u/DenishPatel)\
**Post date:** [December 6, 2022, 3:06pm UTC](https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677/3 "2022-12-06T15:06:40Z")

</div>

Thanks for replying Silvia.  
And apologies for the delayed response.

I tried to perform the steps mentioned in the link. However, when I click on "APM Integration", I get the following error:

Error loading integration details  
Package must contain a top-level manifest.yml file.

---

<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:** [December 27, 2022, 11:07am UTC](https://discuss.elastic.co/t/apm-server-index-template-matching-traces-apm-sampled-not-found/319677/4 "2022-12-27T11:07:06Z")

</div>

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