Ask Elasticsearch where its configuration path is

(Loren Siebert) #1

Is there an API call that returns what a cluster's configuration path is? (e.g., /usr/local/etc/elasticsearch/, /etc/elasticsearch).

(Julien) #2

You should be able to get it using this :
GET _cluster/settings?include_defaults=true

(Loren Siebert) #3

I do not see it there, although I do see other path-related info:

    "path": {
      "data": [
      "logs": "/usr/local/var/log/elasticsearch",
      "shared_data": "",
      "home": "/usr/local/Cellar/elasticsearch/6.2.2/libexec",
      "repo": []

(Julien) #4

Sorry I thought you were after the data path, for path.conf/ES_PATH_CONF :

GET _nodes should return the path in nodes.nodeid.jvm.inputArguments

(Loren Siebert) #5

Indeed it does! Thank you!

        "input_arguments": [

(system) #6

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