[apm][help]APM Server Wont start and fetch indices

Hello Team, I just downloaded tar file for apm server (arm64) and extracted on the host where ES and Kibana is installed.

the output of output test is as following

ubuntu@ip-10-0-3-189:~/apm-server-8.6.0-linux-arm64$ ./apm-server test output
elasticsearch: http://localhost:9200...
  parse url... OK
  connection...
    parse host... OK
    dns lookup... OK
    addresses: 127.0.0.1
    dial up... OK
  TLS... WARN secure connection disabled
  talk to server... OK
  version: 8.6.0

but in the console, am getting this error on server.

{"log.level":"error","@timestamp":"2023-01-13T05:25:17.356Z","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 [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"}
{"log.level":"error","@timestamp":"2023-01-13T05:25:22.355Z","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 [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"}

as am running this locally, is it mandatory to have ES authentication enabled?

Hi @atharvaunde ,

this looks like the Elasticsearch index templates and pipelines have not been set up. Please refer to how to install the APM integration which guides you through how to set up these templates. Once this is done, the APM Server will recognize and can start ingestion.

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