How to set custom env variable in kibana.yml

I need to assign server.host and elasticsearch.url our custom env varible

this is my env variable MY_IP.

I need to assign this variable has a serverhost and elasticsearch.url , so i tried below way

kibana.yml

user_dir: &docker_ip ${MY_IP}
server.host: "%{*docker_ip}"

elasticsearch.url: "http://%{*docker_ip}:9200"

its not working for me, Suggest me how to set our custom env varible to kibana configuration.

It currently isn't possible to use environment variables in kibana.yml, but you might be able to use the alternative approach outlined here: Using environment variables in kibana.yml by passing the parameters on the command line.

Something like:

bin/kibana --elasticsearch.url="http://${DOCKER_IP}:9200" --server.host="${DOCKER_IP}"

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