How do I use variables in .yml files?


(Aaron Bauman) #1

How do you declare and use variables inside elasticsearch.yml?? I'm running on Windows Server.

I've read this article about Environment variables, but find it to be a bit lacking.
https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#_environment_variable_subsitution

Do they get passed in via the command line?
Can they be declared and initialized at the top of the file?
Are they the Environment Variables set under System Properties > Advanced > Environment Variables?

This is probably a very basic question, but I'm not familiar with .yml files and how they work.


(Alexander Reelsen) #2

Hey,

those are environment variables - and probably they need to set under windows as you mentioned (sorry, no windows expertise on my side), under a Linux shell you would use the export keyword to do that.

Hope this helps.

--Alex


(system) #3

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