Database/ElasticSearch

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 버전 확인하기

1. 엘라스틱서치 실행상태 확인하기 systemctl status elasticsearch 2. 엘라스틱서치 실행 상태가 아니면 실행하기 systemctl start elasticsearch 3. 엘라스틱서치 실행상태 다시 확인하기 systemctl status elasticsearch 4. 다음 명령어 입력으로 버전 확인하기 curl localhost:9200

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 6

1. 엘라스틱서치 실행상태 확인하기 systemctl status elasticsearch 2. test 라는 이름을 가진 인덱스 생성하기 curl -XPUT localhost:9200/test?pretty 3. 전체 인덱스 조회하기 curl -XGET localhost:9200/_cat/indices?v 4. test 인덱스 설정 조회해보기 curl -XGET localhost:9200/test?pretty 5. test 인덱스에 a라는 타입을 가지고 1번 id에 "name": "park" 이라는 도큐먼트 추가해보기 curl -XPOST localhost:9200/test/a/1?pretty -H 'Content-Type: application/json' -d ' { "name": "park" } ' ..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 5

1. 인덱스 전체 확인하기 curl -XGET localhost:9200/_cat/indices?v 2. test라는 이름을 가진 인덱스 생성하기 curl -XPUT localhost:9200/test?pretty 3. test 인덱스 상태 조회해보기 curl -XGET localhost:9200/test?pretty 4. test 인덱스의 도큐먼트 조회해보기 curl -XGET localhost:9200/test/_search?pretty 5. test 인덱스에 타입 info를 가진 1번 id에 "name": "park"이라는 도큐먼트 추가해보기 curl -XPOST localhost:9200/test/info/1?pretty -H 'Content-Type: application/json' -d ' {..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 4

1. result 라는 이름을 가진 인덱스 생성하기 curl -XPUT localhost:9200/result?pretty 2. 인덱스 전체 조회하기 curl -XGET localhost:9200/_cat/indices?v 3. result 인덱스 상세조회하기 curl -XGET localhost:9200/result?pretty 4. result 인덱스의 도큐먼트 조회하기 curl -XGET localhost:9200/result/_search?pretty 5. result 인덱스에 info 타입을 갖고 1번 id에 "name": "park" 이라는 도큐먼트 추가해보기 curl -XPOST localhost:9200/result/info/1?pretty -H 'Content-Type: applicati..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 3

1. test 이름을 가진 인덱스 조회하기 curl -XGET localhost:9200/test 2. 전체 인덱스 조회하기 curl -XGET localhost:9200/_cat/indices?v 3. test 이름을 가진 인덱스 생성하기 curl -XPUT localhost:9200/test?pretty 4. test 인덱스 조회하기 curl -XGET localhost:9200/test?pretty 5. test 인덱스의 1번 id에 "name: "kim", "age": 10 도큐먼트 입력해보기 curl -XPOST localhost:9200/test/info/1?pretty -H 'Content-Type: application/json' -d ' { "name": "kim", "age": 10 }..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 2

1. 엘라스틱서치 실행 systemctl start elasticsearch 2. 엘라스틱서치 실행 상태 확인하기 systemctl status elasticsearch 3. 인덱스 조회하기 curl -XGET localhost:9200/_cat/indices?v 4. test 이름을 갖는 인덱스 생성하고 인덱스 조회해보기 curl -XPUT localhost:9200/test?pretty curl localhost:9200/_cat/indices?v 5. 도큐먼트 추가해보기 curl -XPOST localhost:9200/test/info/1?pretty -H 'Content-Type: application/json' -d' { "name": "park" } ' 6. 도큐먼트 조회하기 curl -XGE..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 예제 및 문법 공부 1

1. 인덱스 조회 curl -XGET localhost:9200/_cat/indices?v 2. name 이라는 인덱스 생성하고 조회해보기 curl -XPUT localhost:9200/name?pretty curl -XGET localhost:9200/_cat/indices?v 3. name 이라는 인덱스를 제거하고 조회해보기 curl -XDELETE localhost:9200/name curl -XGET localhost:9200/_cat/indices?v 4. hello 라는 인덱스 생성하고 조회해보기 curl -XPUT localhost:9200/hello?pretty curl localhost:9200/_cat/indices?v 5. hello 인덱스의 도큐먼트 조회해보기 curl -XGET l..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치 실행하기

1. 실행 systemctl start elasticsearch 2. 실행 상태 확인하기 systemctl status elasticsearch 3. 중지하기 systemctl stop elasticsearch 4. 상태 확인하기 systemctl status elasticsearch

Database/ElasticSearch

[logstash] 로그스태시란

1. 로그스태시 - 실시간 파이프라인 기능을 가진 데이터 수집 엔진 - 오픈소스 - 다양한 플러그인 사용 가능 - input, filter, output으로 구성 2. input file input { file { path => "파일경로" start_position => "beginning" } } - file : 원본 데이터 소스를 파일로 지정 - path : 원본 파일의 파일 위치 경로를 입력 - start_position : 파일의 처음부터 데이터로 인식하도록 만듦 3. output elasticsearch output { elasticsearch { hosts => "localhost:9200" index => "test" } } - elasticsearch : 앤드포인트를 엘라스틱서치로 지정 ..

Database/ElasticSearch

[elasticsearch] 엘라스틱서치란?

1. 엘라스틱서치 - 아파치 루씬 기반의 자바 오픈소스 분산 검색 엔진 - 많은 데이터를 준실시간으로 저장, 검색 분석 가능 - 오픈소스 - RESTfule API 기반 2. 로그스태시 - 실시간 파이프라인 기능을 가진 데이터 수집엔진 - 오픈소스 - 예를들어 파일, 데이터베이스, 카프카 등에서 데이터를 수집할 수 있음 3. 엘라스틱서치와 RDBMS의 비교 - 엘라스틱서치 : RDBMS - mapping : schema - index : database - type : table - document : row - field : column 4. 키바나 - 데이터를 시각화 및 스택을 관리하고 모니터링 가능 5. 엘라스틱서치 인덱스 - 데이터가 저장되는 공간 - RDBMS의 데이터베이스와 같은 역할 6. 엘..

박경태
'Database/ElasticSearch' 카테고리의 글 목록 (2 Page)