Set Multiple Path.data

Hi,

I have read every forum and posts on elastic to set multiple Pah.data like
path:
data:
- /mnt/elasticsearch_1
- /mnt/elasticsearch_2
- /mnt/elasticsearch_3

but i got an error after i restart elasticsearch to take effect. Can anyone help me how to set multiple path for data and log...

Hard to tell without knowing the error.

try as
path.data: /mnt/elasticsearch_1,/mnt/elasticsearch_2,/mnt/elasticsearch_3

sry for late reply, I was sick
in elasticsearch.yml
path:
data:
- /somewhere/elasticsearch_1
- /somewhere/elasticsearch_2
- /somewhere/elasticsearch_3

Error:
caused by: whille scanning for the next token
found character '\t(TAB)' that cannot start any token.(Do not use \t(TAB) for indentation)

Please format your code with the code format icon or share the file on gist.github.com.

I feel like you are using tabs instead of spaces here

You are right. I did copy and paste but i don't know what happened.
I copy-pasted from elastic website and it solved . so you are right. Thank you.

It didn't work for me...thank u

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