50% off 全プラン、期間限定。料金は $2.48/mo
Elasticsearch

Elasticsearch

Elasticsearch は分散型の検索・分析エンジンです。全文検索、集計処理、リアルタイムインデックスをペタバイト規模のデータに対して実行できます。Wikipedia、GitHub、eBay、Slack などでサイト検索やログ分析に採用されており、データベース外での全文検索のデファクトスタンダードとなっています。

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

8 GB

IP Types

IPV4,IPV6

Elasticsearch API にアクセスする

  • URL: http://<server-ip>:9200
  • クラスター内部通信: 127.0.0.1:9300 (外部に公開しないでください)

Credentials

  • User: elastic
  • パスワード:安全に保存されています( /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

サービスの管理

Use systemctl commands:

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

Kibana の登録(任意)

Kibana を別途インストールする場合は、Elasticsearch 側で登録トークンを生成し、それを使用して Kibana を安全に設定する必要があります。

1. Elasticsearch サーバーで登録トークンを生成します:

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

2. 生成されたトークンをコピーし、Kibana サーバーで次のコマンドを実行します:

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

これにより、Kibana が Elasticsearch に安全に登録されます。

Elasticsearch コマンド例

クラスターの状態を確認する:

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

全インデックスを一覧表示する:

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.

今すぐ Elasticsearch をデプロイする。 From $2.48/mo.