Skip to main content
50% off all plans, limited time. Starting at $2.48/mo
Elasticsearch

Elasticsearch

Elasticsearch is a distributed search and analytics engine. Full-text search, aggregations, and real-time indexing on petabyte data. Used at Wikipedia, GitHub, eBay, and Slack for site search and log analytics. The de-facto standard for full-text search outside of databases.

At a glance

77.1k

GitHub stars

57

Page views

136

Active installs

Version Latest OS Ubuntu Server 24.04 LTS Min RAM 8 GB IP IPV4,IPV6

Active installs is sample data (staging preview); real metric wires in before launch.

Access Elasticsearch API

  • URL: http://<server-ip>:9200
  • Internal cluster communication: 127.0.0.1:9300 (do not expose externally)

Credentials

  • User: elastic
  • Password: stored securely in /root/.cloudzy-creds

Important Directories

  • Config: /etc/elasticsearch
  • Data: /var/lib/elasticsearch
  • Logs: /var/log/elasticsearch
  • Binaries: /usr/share/elasticsearch/bin
  • Plugins: /usr/share/elasticsearch/plugins

Managing the Service

Use systemctl commands:

systemctl status elasticsearch
systemctl restart elasticsearch
systemctl stop elasticsearch
systemctl start elasticsearch

Enrolling Kibana (Optional)

If you plan to install Kibana separately, you need to generate an enrollment token on Elasticsearch and use it to configure Kibana securely.

1. Generate enrollment token on Elasticsearch server:

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

2. Copy the generated token and on the Kibana server run:

/usr/share/kibana/bin/kibana-setup --enrollment-token "<your-token>"

This enrolls Kibana with Elasticsearch securely.

Example Elasticsearch Commands

Check cluster health:

curl -X GET -k "https://localhost:9200/_cluster/health?pretty" 
  -u elastic:<password> 
  --cacert /etc/elasticsearch/certs/http_ca.crt

List all indices:

curl -X GET -k "https://localhost:9200/_cat/indices?v" 
  -u elastic:<password> 
  --cacert /etc/elasticsearch/certs/http_ca.crt

More in Monitoring

Related apps.

Deploy Elasticsearch now. From $2.48/mo.