-
[Kibana] 설치 및 사용OpenSource 2017. 4. 13. 15:49
Kibana
설치
[Linux 64bit]
$ wget https://artifacts.elastic.co/downloads/kibana/kibana-5.3.0-linux-x86_64.tar.gz
$ tar xvf kibana-5.3.0-linux-x86_64.tar.gz
실행
$ (elasticsearch 실행)
$ cd kibana-5.3.0-linux-x86_64
$ vi config/kibana.yml
server.port: 5601 server.host: "localhost" elasticsearch.url: "http://localhost:9200"$ bin/kibana
접속
browser를 통해 "http://localhost:5601" 접속
Management
왼쪽 메뉴바에서 Management를 선택한다.
Index name or pattern 창에 elasticsearch에서 POST나 PUT으로 삽입해두었던 index 이름을 넣으면, Time-field name 창이 생긴다. time 필드가 존재한다면, 설정해주고 "Create" 한다.
이제 설정한 index의 모든 필드가 보여지게 된다.
Discover
왼쪽 메뉴바에서 Discover를 선택한다. 이 메뉴에서는 time 필드로 데이터를 필터링하여 볼 수있다.
'No result found'가 보여질때는 오른쪽 상단에 'Last 15 minutes'를 누른다. Management에서 설정한 index의 time 필드에 있는 데이터의 시간들이 분포해 있는 시간대로 변경해야 한다.
상단에 검색창에서 검색어로 데이터를 필터링 할 수도 있고, 왼쪽에 필드명을 클릭하면, 분포해 있는 데이터의 해당 필드값이 보여지게 되는데, 그 옆에 돋보기를 눌러서 필터링에 추가시키거나 제외시킬 수 있다.
document를 하나 선택해서 펼치면(▼버튼), Table이 보여진다. Table에서 토글(창문버튼)을 누르면, 해당 필드만 보여지게 된다. 또한, 히스토그램 밑에 있는 Time, name 등의 필드명 옆에 있는 sort(▼버튼)를 눌러 정렬 할 수 있다.
Visualize
"Create a visualization"을 눌러서 원하는 차트를 추가한다. :Vertical bar chart 적용한 모습
:Tile map chart 적용한 모습
Dashboard
"Create a Dashboard" -> 오른쪽 상단 "Add" -> Visualization에서 save한 차트 이름들이 보여진다.
dashboard에 추가할 차트를 클릭하고, 크기를 조정하여 꾸밀 수 있다.
'OpenSource' 카테고리의 다른 글
[oVirt] 소개 (1) 2017.05.31 [Protocol Buffer] 프로토콜 버퍼 소개 및 Go에서의 사용법 (0) 2017.05.18 [Elasticsearch] 개요 및 API (0) 2017.04.13 [kafka] kafka 버전 업그레이드 (Rolling Upgrade) 0.8.x -> 0.10.2.0 (0) 2017.03.31 [CentOS] yum으로 librdkafka 설치하기 (0) 2017.03.02