Install Elasticsearch on macOS with Homebrew
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 installs
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 |
|---|---|---|---|
home | Elasticsearch home directory or |
| |
bin | Binary scripts including |
| |
conf | Configuration files including |
| |
data | The location of the data files of each index / shard allocated on the node. |
|
|
logs | Log files location. |
|
|
plugins | Plugin files location. Each plugin will be contained in a subdirectory. |
|
Next steps
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:
- Learn how to configure Elasticsearch.
- Configure important Elasticsearch settings.
- Configure important system settings.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/brew.html