Install Elasticsearch on macOS with Homebrew


Install Elasticsearch on macOS with Homebrewedit

Elastic publishes Homebrew formulae so you can install Elasticsearch with the Homebrew package manager.

To install with Homebrew, you first need to tap the Elastic Homebrew repository:

brew tap elastic/tap

Once you’ve tapped the Elastic Homebrew repo, you can use brew install to install the latest version of Elasticsearch:

brew install elastic/tap/elasticsearch-full

Directory layout for Homebrew installsedit

When you install Elasticsearch with brew install the config files, logs, and data directory are stored in the following locations.

Type Description Default Location Setting


Elasticsearch home directory or $ES_HOME



Binary scripts including elasticsearch to start a node and elasticsearch-plugin to install plugins



Configuration files including elasticsearch.yml




The location of the data files of each index / shard allocated on the node. Can hold multiple locations.



Log files location.




Plugin files location. Each plugin will be contained in a subdirectory.


Next stepsedit

You now have a test Elasticsearch environment set up. Before you start serious development or go into production with Elasticsearch, you must do some additional setup: