APM error: forbidden request: endpoint is disabled

Hello,

Can anyone help please on this APM error, below I am sharing the technical information and steps ...

Kibana version:7.3.2

Elasticsearch version:7.3.2

APM Server version: 7.4

APM Agent language and version: elastic-apm-agent-1.10.0.jar

Steps to reproduce:

  1. Start APM server

Output:

Summary

...
2019-10-27T20:13:44.747-0700 INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm
2019-10-27T20:13:44.748-0700 INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_user_agent
2019-10-27T20:13:44.748-0700 INFO [pipelines] pipeline/register.go:53 Pipeline already registered: apm_user_geo
2019-10-27T20:13:44.748-0700 INFO [pipelines] pipeline/register.go:56 Registered Ingest Pipelines successfully.
2019-10-27T20:13:44.748-0700 INFO pipeline/output.go:105 Connection to backoff(elasticsearch(https://es******.com:9200)) established
2019-10-27T20:13:53.666-0700 INFO pipeline/output.go:95 Connecting to backoff(publish(elasticsearch(https://es******.com:9200)))
2019-10-27T20:13:53.667-0700 INFO elasticsearch/client.go:743 Attempting to connect to Elasticsearch version 7.3.2
2019-10-27T20:13:53.741-0700 INFO pipeline/output.go:105 Connection to backoff(publish(elasticsearch(https://es******.com:9200))) established

  1. Execute java agent from a Linux remote server :
    java -javaagent:elastic-apm-agent-1.10.0.jar
    -Delastic.apm.service_name=test
    -Delastic.apm.server_urls=http://10...***:8200/
    -Delastic.apm.application_packages=ca.com.elastic

Output:
2019-10-27 20:18:20.405 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.10.0 as test on Java 1.8.0_222 (Oracle Corporation) Linux 3.10.0-1062.1.2.el7.x86_64
2019-10-27 20:18:20.437 [apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2019-09-27T06:58:27Z", "build_sha": "971d864356e4438bf4a799a1fa052cfd0ce680b4", "version": "7.4.0"}
Usage: java [-options] class [args...]

Output from APM server:
2019-10-27T20:18:20.433-0700 INFO [request] middleware/log_middleware.go:76 request ok {"request_id": "15a7483d-686b-4621-a17a-26655808f098", "method": "GET", "URL": "/", "content_length": 0, "remote_address": "10..*.***", "user-agent": "elasticapm-java/1.10.0", "response_code": 200}
2019-10-27T20:18:20.433-0700 ERROR [request] middleware/log_middleware.go:74 forbidden request {"request_id": "447dcc2f-e80b-4fcc-a0fe-2a72a80c621f", "method": "POST", "URL": "/config/v1/agents", "content_length": 419, "remote_address": "10..***.*", "user-agent": "elasticapm-java/1.10.0", "response_code": 403, "error": "forbidden request: endpoint is disabled"}

apm-server.yml

Summary

################### APM Server Configuration #########################
apm-server:
host: "10...***:8200"

rum:
enabled: true
event_rate:
limit: 300
lru_size: 1000

#-- General RUM settings
allow_origins : ['*']
library_pattern: "node_modules|bower_components|~"
exclude_from_grouping: "^/webpack"
source_mapping:
  elasticsearch:      
  cache:
    expiration: 5m
  index_pattern: "apm-*-sourcemap*"

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
hosts: ["es******.com:9200"]
enabled: true
protocol: "https"
username: "myuser"
password: "mypasswd"
ssl.enabled: true
ssl.certificate_authorities: ["../ca.crt"]
ssl.certificate: "../cert.crt"
ssl.key: "../eskey.key"
#============================== X-pack Monitoring ===============================
monitoring.enabled: true

Thanks & Regards,
Jorge

Hi and welcome to the forum!
This error is related to the new agent configuration feature. If you want to use that, you need to configure the Kibana endpoint, otherwise you can ignore.
I hope this helps.

Thanks for your feedback Eyal. It resolved the issue mentioned, now I am experiencing a new one after enabling Kibana "An internal server error occurred", fot this, I've opened new topic.

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