Skip to content

Month: August 2016

Elasticsearch Cluster settings for Production Deployment

The following settings are needed to set in the configuration in the cluster to achieve high availability and stability. Data and logs path By default, the plugins, logs, and data are placed in the installation path. This can lead to unfortunate accidents, whereby the installation directory is accidentally overwritten by a new installation of Elasticsearch. The best thing to do is relocate the data, log, plugins directory outside the installation location as follows # Path to store data /path/to/data1,/path/to/data2 # Path to store log files path.logs: /path/to/logs # Path to where… Read more Elasticsearch Cluster settings for Production Deployment

Logger Settings in Elasticsearch

Default loggers in Elasticsearch The logging configuration of Elasticsearch is placed in logging.yml. The default logger level is INFO. The logger level can be configured as follows in config file es.logger.level: DEBUG This can be done using API call as follows PUT /_cluster/settings { “transient”: { “logger.discovery”: “DEBUG” } }   Slow log settings Slowlog is used to log the indexing requests and queries which exceed mentioned threshold time in the configuration. By default slowlog is disabled. The settings is applied index specific, we can set separate settings for each index… Read more Logger Settings in Elasticsearch