일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- MariaDB
- IntelliJ
- Python
- pem
- Linux
- mysql
- 자바
- 명령어
- github
- Kibana
- mssql
- PostgreSQL
- 오블완
- spring
- oracle
- java
- isNotEmpty
- pandas
- 리눅스
- 티스토리챌린지
- analytics4
- DBMS
- Javascript
- isempty
- MongoDB
- docker
- git
- iBatis
- 호이스팅
- SQL
- Today
- Total
목록DATABASE/ElasticSearch (7)
hanker

Spring에서 ElasticSearch 내 인덱스 전체 목록을 가져와보자. 엘라스틱 서치 7 버전과 8 버전의 코드가 조금 다르다.아래 코드로 알아보자 0. 의존성 추가 co.elastic.clients elasticsearch-java 8.12.0 1. 엘라스틱 인덱스 전체 리스트 가져오기 (7.x 버전) - RestHighLevelClient 사용@Autowiredprivate RestHighLevelClient client;public List getAllIndices() throws IOException { GetAliasesRequest request = new GetAliasesRequest(); // 전체 인덱스를 대상으로 함 GetAliasesResponse respo..

이전 글에서 Logstash 설치와 실행을 해봤다.이번 글에서는 멀티 파이프라인 설정을 해서 여러 테이블에서 Logstash를 통해 데이터를 수집해보자. 1. 멀티 파이프라인 설정 (vi /etc/logstash/pipelines.yml) 아래 그림과 같이 pipelines.yml 에서 설정을 변경할 예정이다.$ vi /etc/logstash/pipelines.yml 안에 내용을 보면 pipeline 아이디가 지정되어있고, config 파일을 읽을 경로가 설정되어있다.이전 글에서 conf.d 디렉터리내에 .conf 파일을 넣어서 logstash를 실행시켰는데, pipelines.yml 파일에 설정이 되어있어 전송이 잘 된거다. * 아래 사진과 같이 *.conf로 설정되어 있으면 여러개 conf파일들을 읽..

기존에 사용하고 있는 RDBMS 데이터를 ElasticSearch에 넘기기 위해 Logstash를 설치해 보자.Logstash는 형식이나 복잡성과 관계없이 데이터를 동적으로 수집, 전환, 전송한다고 한다.1. 설치$ yum install logstash 설치 확인 (systemctl status logstash) 2. 파이프라인 설정 yum install을 통해 설치를 하면, /etc 내부에 logstash 디렉터리가 생성된다. 2-1. ./conf.d 내부에 파이프라인 설정파일 추가 (최초에는 비어있음) 2-2. logstash 실행 (인덱스 생성확인)./conf.d 디렉토리에 파이프라인 설정파일을 추가했으면 이제 실행시켜 보자.2개의 파이프라인 설정파일을 추가했고, 인덱스가 2개 생성되면 성공..

엘라스틱서치 버전을 확인하는 방법을 알아보자. 방법 1 : curl 명령어# curl 엘라스틱서치설치IP:9200$ curl localhost:9200 방법 2 : elasticsearch* 실행 이용 # 엘라스틱서치설치경로/bin -version$ /usr/share/elasticsearch/bin/elasticsearch -version 방법 3 : kibana 관리페이지에서 확인하기 Kibana 좌측 상단에 햄버거 버튼을 클릭해서 스크롤을 내리면 Stack Management 메뉴 클릭 시 버전 정보 확인이 가능하다.
Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"input\", \"filter\", \"output\" at line 1, column 1 (byte 1)", Logstash를 이용하여 MariaDB to ElasticSearch를 동기화하던 중 오류가 발생했다. 오류 로그를 읽어보면 첫 줄부터 오류가 발생했다고 한다.첫 시작은 input, filter, output 중 하나여야 하는데, 아니여서 오류가 발생했다.원인설명첫 줄에 in..

Kibana는 Elasticsearch의 시각화 도구이다.이전 글에서 ElasticSearch 설치를 했었는데, 이어서 모니터링할 수 있는 Kibana 설치 후 실행까지 해보자. 1. Kibana 설치 1-1. Kibana 설치$ yum install -y kibana 1-2. Kibana 설정 변경$ vi /etc/kibana/kibana.ymlserver.host: "0.0.0.0"elasticsearch.hosts: ["http://localhost:9200"] 1-3. Kibana 실행$ systemctl start kibana$ systemctl enable kibana 1-4. 웹브라우저 kibana 접속> http://서버_IP:5601

CentOS7에서 ElasticSearch 7.x 설치방법을 알아보자. 1. Java Version 확인 https://www.elastic.co/support/matrix#matrix_jvm Support MatrixThe tables below display platform and software configurations that are eligible for support under our subscription offerings. Learn more about our Support Policy and product End of Life poli...www.elastic.coElasticSearch 를 설치하기 위해 필요한 Java Version을 정리해놓은 사이트이다.우리는 7.x 버전을 설치..