Sample configuration files
If you are just starting with Elasticsearch, the following are the sample elasticsearch.yml files for a cluster with one or more nodes. The configuration is specific to a single node and has to be configured for all the nodes in the cluster. If you install Elasticsearch using zip or .tar.gz, the elasticsearch.yml file is located in the config directory in the main elasticsearch-5.1.2 folder. If you install Elasticsearch using DEB/RPM, it is located by default in the /etc/elasticsearch folder. We will go into more details in Chapter 9, Production and Beyond.
If you are starting with just one node, you need to set the cluster name, node name, and the IP address that the Elasticsearch should bind to. If no IP address ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access