Managing configuration files

The configuration file changes are the most basic yet important to make from a production deployment perspective. Let's have a look at the configuration files of various components.

Elasticsearch - elasticsearch.yml

By default, Elasticsearch sets values for important properties such as cluster, node related like cluster name, node name, and so on. While it's not necessary to set, it's a good idea to customize the names. For example, we should specify the node names so that we can remember and keep track of the node statistics by the node name that we specified. Few of such properties are explained below:

  • Change the name of the cluster by modifying the following property:
     # cluster.name: my-application cluster.name: production-elasticstack ...

Get Mastering Elastic Stack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.