우분투 18.04에 Kibana, Logstash 설치하기

magnae2016·2021년 11월 7일

작심삼일 ELK Stack

목록 보기
3/5

Kibana 설치하기

Kibana 다운로드

tar 파일 다운 후 압축 해제

wget https://artifacts.elastic.co/downloads/kibana/kibana-7.15.1-linux-x86_64.tar.gz
tar xvfz ./kibana-7.15.1-linux-x86_64.tar.gz

kibana.yml 환경 설정하기

kibana.yml 파일 위치

kibana-7.15.1-linux-x86_64/config/kibana.yml

kibana.yml 파일 수정

kibana.yml 파일의 항목들 중 대부분은 그대로 사용해도 되지만 아래의 두 항목은 반드시 환경에 맞춰서 바꿔 주어야 한다.

  • server.host: Kibana가 외부의 접근을 처리하기 위한 IP 주소 지정
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "0.0.0.0" # 외부에서 접근할 수 있도록 설정
  • elasticsearch.hosts: Elasticsearch 클러스터 주소를 입력
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://localhost:9200"]

Kibana 실행하기

./bin/kibana

kibana를 실행하고 5601 포트를 웹 브라우저로 열어보면 Kibana에 접속할 수 있다.
Kibana 실행하기

Logstash 설치하기

tar 파일 다운 후 압축 해제

wget https://artifacts.elastic.co/downloads/logstash/logstash-7.15.1-linux-x86_64.tar.gz
tar xvfz ./logstash-7.15.1-linux-x86_64.tar.gz
profile
작심삼일 무한 루프 ♾️

0개의 댓글