엘라스틱 스택

키바나 설치

사리생성 2024. 10. 1. 16:57

1. 키바나 설치

$ sudo apt-get install kibana

$ sudo apt-get install kibana

...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  kibana
0 upgraded, 1 newly installed, 0 to remove and 77 not upgraded.
Need to get 340 MB of archives.
After this operation, 1,013 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/8.x/apt stable/main amd64 kibana amd64 8.15.2 [340 MB]
Fetched 340 MB in 1min 25s (3,982 kB/s)
Selecting previously unselected package kibana.
(Reading database ... 75984 files and directories currently installed.)
Preparing to unpack .../kibana_8.15.2_amd64.deb ...
Unpacking kibana (8.15.2) ...
Setting up kibana (8.15.2) ...
Creating kibana group... OK
Creating kibana user... OK
Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/8.15/production.html#openssl-legacy-provider
Created Kibana keystore in /etc/kibana/kibana.keystore

 

2. 확인 (시작시 등록할 토근값)

$ sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

$ sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTAuMzAuMC4xODU6OTIwMCJdLCJmZ3IiOiJjNDIxMTNmY2JhZDFjYWFhNGUyNTUxYjZhMDA5MTBjZmMwZWVjYmYzNGI3ZDdjNjNmZGY5N2JmMTFiMWM0ZTk4Iiwia2V5IjoiazAzM1JaSUJWV0FLcFBTeU9Demg6Z0tJZzFhR2hTYWFCYjFQcDhqcEtOUSJ9



3. 실행

$ sudo systemctl daemon-reload
$ sudo systemctl enable kibana
$ sudo systemctl start kibana

 

4. kibana 접속하기.
외부 접속 설정을 위해 kibana.yml 파일의 서버 주소를 0.0.0.0으로 변경.

$ sudo vi /etc/kibana/kibana.yml
#server.host: "localhost" -> server.host: "0.0.0.0"

$ sudo systemctl restart kibana

 

http://10.30.0.185:5601/

 

 

 

sudo /usr/share/kibana/bin/kibana-verification-code

sudo /usr/share/kibana/bin/kibana-verification-code
Your verification code is:  002 343

 

 

 


** 접속 아이디를 별도로 만든적이 없다면 ...

username : elastic <-- 기본 아이디
password : d6A5UCnibC_atfl4_pQ* <-- elasticsearch 설치시 제공해준 패스워드


** 패스워드 변경

bin/elasticsearch-reset-password --username kibana_system -i

 

 




http://10.30.0.217:5601/app/integrations/browse

apm
http://10.30.0.217:5601/app/home#/tutorial/apm

======

** 참고 elasticsearch 접속해보기.

 

'엘라스틱 스택' 카테고리의 다른 글

키바나 APM 선택  (1) 2024.10.01
비츠 설치  (0) 2024.10.01
로그 스태시 설치  (0) 2024.10.01
엘라스틱 서치 설치  (0) 2024.10.01
엘라스틱 스택.  (0) 2024.09.19