Where Elasticsearch store the data on Mac

Viewed 6751

Similar question to this one about debian. I have non-customized installation and I wonder where the data is actually stored. It is not in /var/lib/elasticsearch/nodes/0/indices/{nameOfYourIndex}/(0-4}/index as indicated in the accepted answer to the linked question.

6 Answers

On your computer i.e. Mac OS X you can use the command:

brew info elasticsearch

# or

brew info elasticsearch[@version] i.e. brew info elasticsearch@5.6

and you see where data are.

Here are my directories:

==> Caveats
Data:    /usr/local/var/lib/elasticsearch/
Logs:    /usr/local/var/log/elasticsearch/elasticsearch_xxx.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config:  /usr/local/etc/elasticsearch/

OS X Sierra 10.12.6: /usr/local/var/lib/elasticsearch

Related