elasticsearch 썸네일형 리스트형 우분투에서 Elasticsearch 8.x 설치 및 클러스터 구성 방법 우분투에서 Elasticsearch 8.x 설치 및 클러스터 구성 방법 운영 체제 환경 설정 호스트 파일에 노드 추가(/etc/hosts) cat /etc/hosts ### elasticsearch 192.168.56.71 node1 192.168.56.72 node2 192.168.56.73 node3 EOF Elasticsearch 사용자의 ulimit을 설정 cat > /etc/security/limits.conf ### elasticsearch elasticsearch hard nofile 65535 elasticsearch soft nofile 65536 elasticsearch hard nproc 65536 elasticsearch soft nproc 65536 elasticsearch har.. 더보기 [draft] Elasticsearch에서 SSL/TLS를 구성하는 방법 Elasticsearch에서 SSL/TLS를 구성하는 방법Elasticsearch - node1password : elasticCA file : /etc/elasticsearch/certs/elastic-stack-ca.p12Certificates file : /etc/elasticsearch/certs/elastic-certificates.p12CA(Certificate Authority) 생성/usr/share/elasticsearch/bin/elasticsearch-certutil ca \--out /etc/elasticsearch/certs/elastic-stack-ca.p12 \--days 3650$ /usr/share/elasticsearch/bin/elasticsearch-certutil c.. 더보기 [draft] Helm을 사용하여 Bitnami Elasticsearch 및 Kibana 설치 Helm을 사용하여 Bitnami Elasticsearch 및 Kibana 설치limit 설정sudo vim /etc/sysctl.confvm.max_map_count=262144fs.file-max=65536sysctl -p$ sysctl -pvm.max_map_count = 262144fs.file-max = 65536sudo vim /etc/security/limits.conf* - nofile 65535* - nproc 65535Bitnami의 Helm 차트 저장소를 추가helm repo add bitnami https://charts.bitnami.com/bitnami$ helm repo list | egrep bitnamibitnami https://charts.bi.. 더보기 Elasticsearch 클러스터의 상태를 점검하고 모니터링하는 방법 Elasticsearch 클러스터의 상태를 점검하고 모니터링하는 방법 curl 명령어와 Elasticsearch API 엔드포인트를 사용하면 클러스터의 상태, 노드, 인덱스, 샤드 및 다른 핵심 정보를 확인할 수 있습니다. 클러스터 상태 확인 curl -X GET "http://localhost:9200/_cluster/health" curl -XGET 'http://elastic_user:elastic_password@localhost:9200/_cluster/health?pretty' { "cluster_name" : "es-cluster", "status" : "yellow", "timed_out" : false, "number_of_nodes" : 3, "number_of_data_nodes" :.. 더보기 [draft] Ubuntu 환경에서 Metricbeat 설치하는 방법 Ubuntu 환경에서 Metricbeat 설치하는 방법Metricbeat 설치하기로컬 저장소 업데이트sudo apt-get updateMetricbeat 패키지 설치sudo apt-get install -y metricbeat구성 파일(metricbeat.yml) 편집vim /etc/metricbeat/metricbeat.ymlMetricbeat 서비스 시작systemctl --now enable metricbeat.serviceMetricbeat 서비스 상태 확인systemctl status metricbeat.service메트릭 수집 모듈 활성화 및 구성metricbeat modules list$ metricbeat modules listEnabled:systemDisabled:activemqaero.. 더보기 [draft] Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node)apt 저장소 업데이트sudo apt-get updateapt-transport-https 패키지 설치sudo apt-get install -y apt-transport-httpsElasticsearch 공식 GPG 키 추가wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpgElasticsearch 저장소 추가echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.. 더보기 [draft] Metricbeat 설치하는 방법 Metricbeat 설치하는 방법Metricbeat 패키지 설치yum install --enablerepo=elasticsearch -y metricbeatMetricbeat(metricbeat.yml) 설정 확인cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#'$ cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#'metricbeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled: falsesetup.template.settings: index.number_of_shards: 1 index.codec: best_compressi.. 더보기 [draft] Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node)테스트 환경$ cat /etc/os-releaseNAME="Amazon Linux"VERSION="2"ID="amzn"ID_LIKE="centos rhel fedora"VERSION_ID="2"PRETTY_NAME="Amazon Linux 2"ANSI_COLOR="0;33"CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"HOME_URL="https://amazonlinux.com/"Elasticsearch 설치Elasticsearch 다운로드 페이지https://www.elastic.co/downloads/elasticsearchhttps://www.elastic.co/guide/en/elas.. 더보기 이전 1 2 3 다음