APM server to Logstash: "data_streams.wait_for_integration:false doesn't work"

I’m currently setting up APM Server to send data to Logstash without connecting to Elasticsearch or Kibana, using the output.logstash configuration. However, the APM Server keeps shutting down with the following error:

error waiting for server to be ready: cannot wait for integration without either Kibana or Elasticsearch config

According to the Elastic Discussion Topic, setting data_streams.wait_for_integration: false should disable this behavior. But it doesn’t seem to have any effect in my case.

Here is my APM Server Helm values.yaml (version 8.5.1):

apmConfig:
  apm-server.yml: |
    apm-server:
      host: "0.0.0.0:8200"
      auth:
        anonymous:
          enabled: true

    data_streams:
      wait_for_integration: false

    queue: {}

    output.logstash:
      enabled: true
      hosts: ["logstash-logstash:5044"]

    kibana:
      enabled: false

    output.elasticsearch:
      enabled: false

The APM Server still tries to wait for Elasticsearch or Kibana even with wait_for_integration: false. I’ve confirmed the key is being applied properly inside the container.

Any ideas? Is this a bug in 8.5.1, or am I missing something in the configuration?

Thanks in advance!

Hi @nhannhathegreat ,
please try with nesting data_streams.wait_for_integration under the apm-server key (apm-server.data_streams.wait_for_integration).

1 Like