Apm server error logs-apm.error not found

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"}
"message":"failed to obtain connection to Kibana: fail to get the Kibana version: HTTP GET request to 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
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"
-E setup.template.settings.index.number_of_replicas=1
-E apm-server.kibana.enabled=true
-E apm-server.kibana.host="https://es:5601"
-E output.Elasticsearch.hosts=["https://es:9200"]
-E output.Elasticsearch.username="userid"
-E output.Elasticsearch.password="password"

Can you suggest.

Thanks

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.

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.

I have already done the APM integration as specified on Quick start with Elastic Cloud | APM User Guide [8.11] | Elastic
Step 1. we set fleet server
Step2: ignored we don't want metrics/file ingestion
Step3:

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