Elasticsearch8

[CentOS8, Ubuntu 22.04] Kibana 설치 , 설정, 접속

Jack Moon 2022. 3. 28. 13:12

Ubuntu 22.04

다운로드

https://www.elastic.co/kr/downloads/kibana

https://artifacts.elastic.co/downloads/kibana/kibana-8.6.1-linux-x86_64.tar.gz  (2023. 1. 31 현재)

 

방화벽오픈

ufw allow 5601

 

나머지는 아래 과정과 동일

 

kibana 접속
http://192.168.0.11:5601/?code=731109

Enrollment token 얻기
prmonitor@es-server:~$ ./elasticsearch-8.6.1/bin/elasticsearch-create-enrollment-token --scope kibana


eyJ2ZXIiOiI4LjYuMSIsImFkciI6WyIxOTIuMTY4LjAuMTE6OTIwMCJdLCJmZ3IiOiJiYTJkNWI3YmJhZTgwNmFhMGQ3YTE5YzFiZTE4MmZiYWNhYmFlOGExZDJlNzhmZWQzZDZiYjk3NWJlZjllOTE3Iiwia2V5IjoiQjRiNENvWUJYUTFqcjNmMWV0dVU6cG80QWtTbjdUcDJ2b2hFc1M4bWY1USJ9

 

1. 설치

 

https://www.elastic.co/kr/downloads/
Linux x86_64 선택

2022.03.25 현재 https://artifacts.elastic.co/downloads/kibana/kibana-8.1.1-linux-x86_64.tar.gz

[elastic@localhost ~]$ wget https://artifacts.elastic.co/downloads/kibana/kibana-8.1.1-linux-x86_64.tar.gz
[elastic@localhost ~]$ tar zxvf kibana-8.1.1-linux-x86_64.tar.gz 
[elastic@localhost ~]$ cd kibana-8.1.1/

2. 설정

[elastic@localhost ~]$ vi config/kibana.yml
# Kibana 포트
server.port: 5601
# 외부 어디서든 접근 허용
server.host: "0.0.0.0"
# elasticsearch가 원격에 있을 경우
elasticsearch.hosts: ["http://ip:9200"]

3. firewalld 포트 오픈

# 열린 포트 확인
[root@localhost home]# firewall-cmd --permanent --zone=public --list-ports
# 포트열기
[root@localhost home]# firewall-cmd --permanent --zone=public --add-port=5601/tcp
success
# reload
[root@localhost home]# firewall-cmd --reload
success

4. 실행

[elastic@localhost kibana-8.1.1]$ ./bin/kibana

5. 브라우저에서 Kibana 열기

브라우저를 열어
http://IP주소:5601

 

https://blog.daum.net/moon0sool/245
4. 패스워드화 토큰 가져오기 참조