Elasticsearch Configuration

Pradeep Kumar
ELK Tutorial
Published in
2 min readMay 12, 2020

Once installed elasticsearch (ES), open config/elasticsearch.yml to do following settings

  • Path Settings
  • Cluster Name
  • Node Name
  • Network Host
  • Discovery Settings ( Need updating only in Production environment)

Path Settings
It includes setting for creation of data and log folder. By default its present as subdirectory of ES home folder.
Data settings can be set to multiple paths (Array of values). If multiple path is configured, all the paths will be used to store data. Example of data and log folder is given below

# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /path/to/data
#
# Path to log files:
#
path.logs: /path/to/logs
#

Note: For production environment, change location of data and log folder.

Cluster Name
This setting is important when we plan to create elastic as cluster. Cluster name should be meaningful and unique.
Default cluster name is “elasticsearch”

#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: Test-cluster
#

Node Name
This setting is human readable name of that node. By default its hostname where elastic node is installed.

# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: Test-node-1
#

Network Host
Default network host configuration will be localhost (127.0.0.1) for single development node. To connect to cluster we need configure with machine ip/ hostname (non-loopback address).

# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 127.0.0.1
#

My Name is PradeepKumar [pradeep185]. I am a software developer . If you enjoyed this article, please recommend and share it! Thanks for your time.

You can also contact me on mpradeeptce [at] gmail.com

--

--