Elasticsearch API 접근
- URL:
http://<server-ip>:9200 - 클러스터 내부 통신:
127.0.0.1:9300(외부에 노출하지 마세요)
자격증명
- 사용자:
elastic - 비밀번호: 안전하게 저장된 위치
/root/.cloudzy-creds
중요 디렉토리
- 구성:
/etc/elasticsearch - 데이터:
/var/lib/elasticsearch - 로그:
/var/log/elasticsearch - 이진 파일:
/usr/share/elasticsearch/bin - 플러그인:
/usr/share/elasticsearch/plugins
서비스 관리
사용법 systemctl 명령:
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
Cloudzy는 언매니지드 VPS 인프라를 제공합니다. 애플리케이션은 고객이 직접 호스팅할 수 있도록 자동으로 설치되며, 각자의 업스트림 라이선스를 따릅니다. Cloudzy는 Elastic와 제휴 관계가 없으며 승인을 받지도 않았습니다.