Skip to main content
Version: 4.12.x.x LTS

Elasticsearch Troubleshooting

Checking the Status of the Starting Service

Run the following commands to make sure that the service has started completely:

# To view the status of service starting.
systemctl status elasticsearch
# To view log of service starting to ensure the service is started without issue.
journalctl -u elasticsearch
# Using Elasticsearch API to check the status.
curl -XGET localhost:9200

Checking the Configuration of Installed Elasticsearch

The configuration of Elasticsearch is stored in the /var/opt/elasticsearch/config directory by default.

cat /var/opt/elasticsearch/config/elasticsearch.yml

Viewing the Elasticsearch Logs

For the purpose of testing and debugging, you can view the logs while starting the service:

tail -f /var/opt/elasticsearch/logs/elasticsearch.log

Viewing the List of Indices in a Cluster

After deploying the search definitions and the building indices, execute the following command:

curl -XGET localhost:9200/_cat/indices?v