Support for multiple elasticsearch server configuration in apm server yml file

Elasticsearch version:
6.8.4
APM Server version:
7.6.0
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.
No
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.

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

apm-server:
host: 0.0.0.0:8200
output.elasticsearch:
hosts:

  • 172.31.90.133:9200
    indices:
  • index: apm-stacktrace-sj5cm67x_write
    when.contains:
    labels._tag_profileName: nodejs
  • index: apm-stacktrace-1bsdmimn_write
    when.contains:
    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.