Support for multiple elasticsearch server configuration in apm server yml file

Elasticsearch version:
APM Server version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Download page
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Does the APM server support multiple elasticsearch IPs configurations in apm-server.yml file so that we can send documents to different elasticsearch servers based on indices conditions.

I have created two different elasticsearch servers and i need to send data to each elasticsearch server based on indices conditions.


  • index: apm-stacktrace-sj5cm67x_write
    labels._tag_profileName: nodejs
  • index: apm-stacktrace-1bsdmimn_write
    labels._tag_profileName: trace
    password: '123456'
    username: apm
    setup.template.enabled: false

In case this support is not available, will it be available in future. Please let us know.

Hi @bimanarajesh,
this is not possible when writing directly from APM Server to Elasticsearch.
For a more complicated routing you can configure the logstash output in the apm-server.yml and then create a logstash pipeline for the Elasticsearch output.

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