Thanks David.
My requirement is to get the value of 'discovery.zen.ping.unicast.hosts'. Is there any other API which gives me this information?
So if we can't read the default settings, then is it a good idea to write a plugin which will read elasticsearch.yml and create an index for storing all the values? And from the created index, I can read the settings?