본문 바로가기

반응형

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.. 더보기
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" :.. 더보기
[리눅스] Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) apt 저장소 업데이 sudo apt-get update apt-transport-https 패키지 설치 sudo apt-get install -y apt-transport-https Elasticsearch 공식 GPG 키 추가 wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg Elasticsearch 저장소 추가 echo "deb [signed-by=/usr/share/keyrings/elasticsearch-.. 더보기
[리눅스] Fleet Server 호스트 추가 Fleet Server 호스트 추가 다이어그램(diagram) Elasticsearch에서 보안 및 API 키 인증 기능을 활성화 elasticsearch 구성 파일 편집 xpack.security.authc.api_key.enabled: true 추가 vim /etc/elasticsearch/elasticsearch.yml ... # Enable security features xpack.security.enabled: true xpack.security.enrollment.enabled: true xpack.security.authc.api_key.enabled: true # Enable encryption for HTTP API client connections, such as Kibana, Log.. 더보기
[리눅스] Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) 테스트 환경 $ cat /etc/os-release NAME="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/elasticsearch https://www.elastic.c.. 더보기
[aws] EFK 스택 구성하기(efk stack setup) EFK 스택 구성하기(efk stack setup) Elasticsearch: Elasticsearch는 분산 검색 및 분석 엔진으로 대규모 데이터 저장 및 분석을 지원합니다. 로그 데이터를 저장하고 인덱싱합니다. Elasticsearch는 데이터 저장 및 검색에 최적화된 NoSQL 데이터베이스입니다. Kibana: Kibana는 Elasticsearch의 데이터를 시각화하기 위한 웹 인터페이스입니다. Kibana를 사용하여 데이터를 검색, 시각화하고 대시보드를 생성할 수 있습니다. Fluentd: Fluentd는 로그 수집 도구로, 로그 데이터를 수집, 처리 및 전송합니다. Fluentd는 다양한 데이터 소스에서 로그 데이터를 수집하고 Elasticsearch에 전송합니다. Fluent Bit: Flu.. 더보기
[리눅스] Elasticsearch REST APIs Elasticsearch REST APIs cURL(command) 클러스터 정보 표시(cluster info) curl -s -k -u elastic:'elastic1!' https://localhost:9200 | jq $ curl -s -k -u elastic:'elastic1!' https://localhost:9200 | jq { "name": "node-1", "cluster_name": "my-application", "cluster_uuid": "IcZQ4wjTR1e9Hym9T8RdQg", "version": { "number": "8.6.2", "build_flavor": "default", "build_type": "deb", "build_hash": "2d58d0f136141f0323.. 더보기
[aws] ec2 인스턴스(amazon linux 2)에 elasticsearch를 설치하기 ec2 인스턴스(amazon linux 2)에 elasticsearch를 설치하기 elasticsearch 설치하기 elasticsearch download : https://www.elastic.co/kr/downloads/past-releases/elasticsearch-8-6-1 elasticsearch 패키지 다운로드 wget -q https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.1-x86_64.rpm wget -q https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.1-x86_64.rpm.sha512 체크섬 sha512sum -c elastic.. 더보기

728x90
반응형