Camunda optimize elastic search issue

Hi Team,

I am trying out Camunda optimize with my own elastic cluster which is hosted in azure with basic auth . Our elastic search is accessible with this url https://dev-api-azr.com/elasticsearch. I modified the environment-config.yaml to point this host. Camunda optimize is unable to start and the log “Starting Camunda Optimize 3.7.2…” is forever. There is no option in the env-config for providing any prefix. Hereby mentioned the es-config. Please let me know if I am missing anything.

es:
connection:
nodes:
- host: ‘dev-api-azr.com/elasticsearch
httpPort: 443
proxy:
enabled: false
host:
port:
sslEnabled: false
security:
username: ‘elastic’
password: ‘espasswrd’
ssl:
certificate: null
certificate_authorities: []
enabled: true

Hi @Techie,
Looking at the elasticsearch docs, I think the client expects Elasticsearch at the base path, so you’d need to configure your elasticsearch cluster to be accessible without the /elasticsearch subpath.

1 Like

Elastic search client can accomodate pathprefix by using configuration. That’s how we are using in our spring boot App. Please check the below references:

https://snapshots.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client/8.2.0-SNAPSHOT/org/elasticsearch/client/RestClientBuilder.html#setPathPrefix(java.lang.String)

In our use case, we can’t hit direct elastic cluster, it has to be through proxy and it contains a path prefix. So, looking for some help to solve this use case.

Hi @Techie,
Cheers for the references, that’s actually good info to know. Unfortunately, Optimize doesn’t currently support specifying a path prefix. I would suggest you open a feature request then the team and I can look into evaluating whether this is functionality we can add to Optimize with a future release.