본문 바로가기

반응형

ElasticSearch

[리눅스] 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.. 더보기
[리눅스] Elasticsearch 업그레이드(Elasticsearche rpm install on CentOS 7) Elasticsearch 업그레이드(Elasticsearche rpm install on CentOS 7) 테스트 환경 - CentOS 7 - elasticsearch 7.10.2 목표 - Upgrade Elasticsearche : https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html - elasticsearch 8.3.1로 업그레이드 - 7.10에서 7.17로 업그레이드, 7.17에서 8.3으로 업그레이드 elasticsearch 패키지 다운로드 rpm 다운로드 - https://www.elastic.co/guide/en/elasticsearch/reference/8.3/rpm.html#rpm-repo 인증.. 더보기
[리눅스] 도커 컨테이너로 elasticsearch, kibana 올리기(multi-node cluster) 도커 컨테이너로 elasticsearch, kibana 올리기(multi-node cluster) elasticsearch 설치 docker network 생성 docker network create esnet elasticsearch node-1 생성 및 로그 확인 docker run -it --name node-1 --net esnet -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:8.2.1 -------------------------------------------------------------------------------------------------.. 더보기

반응형