# Connecting APM to logstash

**URL:** <https://discuss.elastic.co/t/connecting-apm-to-logstash/351124>\
**Category:** Metrics\
**Created:** [January 16, 2024, 7:13am UTC](https://discuss.elastic.co/t/connecting-apm-to-logstash/351124 "2024-01-16T07:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Affan\_Mir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/affan_mir/32/123647_2.png) [@Affan\_Mir](https://discuss.elastic.co/u/Affan_Mir)\
**Post date:** [January 16, 2024, 7:13am UTC](https://discuss.elastic.co/t/connecting-apm-to-logstash/351124/1 "2024-01-16T07:13:26Z")

</div>

I want to connect my apm-server to my log stash that will do some preprocessing before dumping the metrics into Elasticsearch.

According to the documentation listed at [Configure the Logstash output | APM User Guide [8.11] | Elastic](https://www.elastic.co/guide/en/apm/guide/current/logstash-output.html) I have to Enable the Kibana endpoint in APM. However the error I receive is

```auto

> "failed to obtain connection to Kibana: fail to get the Kibana version: HTTP GET request to http://helm-kibana-security-kibana:5601/api/status fails: fail to execute the HTTP GET request: Get \"http://helm-kibana-security-kibana:5601/api/status\": EOF (status=0)

apm-server:
      host: "0.0.0.0:8200"
      kibana:
        enabled: true
        host: "helm-kibana-security-kibana:5601"
        username: ${ELASTICSEARCH_USERNAME}"
        password: "${ELASTICSEARCH_PASSWORD}"
  output.logstash:
          host: '${NODE_NAME}'
          enabled: true
          hosts: ["helm-logstash-security-logstash.elasticsearch:5044"]

```

This is my configuration for apm any leads on what I'm possibly missing ?

---

<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:** [February 13, 2024, 7:14am UTC](https://discuss.elastic.co/t/connecting-apm-to-logstash/351124/2 "2024-02-13T07:14:08Z")

</div>

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