Dror
Dror

Reputation: 13081

Where Elasticsearch store the data on Mac

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.

Upvotes: 7

Views: 7986

Answers (6)

ThorstenC
ThorstenC

Reputation: 1314

On MacOS BigSur, 11.x and higer: /usr/local/etc/elasticsearch

See https://www.elastic.co/guide/en/elasticsearch/reference/current/brew.html for a update version of folders.

Upvotes: 0

Štefan Bartoš
Štefan Bartoš

Reputation: 571

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 [email protected]

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/

Upvotes: 10

magicrebirth
magicrebirth

Reputation: 4244

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

Upvotes: 4

Jorge
Jorge

Reputation: 184

It can be found the file config/elasticsearch.yml available in your installation directory. Look for the path.data directive.

For example, for OS X (Sierra) installed through brew, the data is found in /usr/local/var/elasticsearch/.

To find the installation directory, execute brew list <package-name> if installed with brew

Upvotes: 2

Val
Val

Reputation: 217574

On Mac, the data is stored in the data sub-folder of your elasticsearch installation folder.

See the directory layout for normal installations, i.e. neither Linux nor Windows.

Upvotes: 4

Michael Yagudaev
Michael Yagudaev

Reputation: 6129

On OS X (El Capitan) installed through brew it is found in /usr/local/var/elasticsearch

Upvotes: 13

Related Questions