Elasticsearch not adding cluster_name to datafiles location (path.data)


Elasticsearch 6.4.3

I did not notice this before, but why is that, if I have in elasticsearch.yml file:

path.data: "/elastic/data/"

Then my files are created under:


In 1.7.2, I also have the same value for path.data:

path.data: "/elastic/data/"

But in 1.7.2, files are created under:


Why do they lose the cluster_name from this path..?

In 6.x, should I change path.data to..?

path.data: "/elastic/data/<<cluster_name>>/"

Or is there some other (better) approach for having cluster_name in its path..?
What are your recommendations.



Why do you need the cluster name in the data path?

Hmm, would be nice, structurally, I guess..

But what would be the reason why they dropped this..?


I do not know, but as you should not interact directly with the file system anyway, it should not matter.

The reason for dropping the cluster name from the path in 5.0 was that it may contain weird characters that aren't legal in a directory name (or which are only legal on some operating systems). It was removed entirely because there's no need to have multiple clusters under a single path.

1 Like

Ok, fair enough, thanks for the explanation.


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