ELK 설치


[설치환경]     


1. VirtualBox(-5.2.2-119230)에 CentOS(-7-x86_64-DVD-1708.iso) 


% 참고 사이트


http://richellin.tistory.com/3


https://m.blog.naver.com/PostView.nhn?blogId=jkssleeky&logNo=220795556640&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F




2. CentOS Xwindow 설치 


% 참고 사이트 


http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html    


   yum update && yum upgrade


   yum groupinstall "GNOME Desktop" "Graphical Administration Tools"


   ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target




3. CentsOS Java 설치


  http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html


  yum install  jre-8u91-linux-x64.rpm 


  rpm -Uvh jre-8u91-linux-x64.rpm


 


[Elasticsearch 설치]


1. elastic site에서 최신버젼 다운로드


wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.0.rpm


2. rpm 자동설치 및 실행


$>rpm -ivh elasticsearch-6.1.0.rpm 


$> systemctl enable elasticsearch


$> systemctl start elasticsearch


$> systemctl status elasticsearch


$> systemctl stop elasticsearch


%binary 확인 (/usr/share/elasticsearch/bin) 


%default 저장소 




[Kibana 설치]


1. elastic site에서 최신버젼 다운로드


$> wget https://artifacts.elastic.co/downloads/kibana/kibana-6.1.0-x86_64.rpm


$> rpm -ivh kibana-6.1.0-x86_64.rpm


$> systemctl enable kibana


$> systemctl start kibana


$> systemctl status kibana


$> systemctl stop kibana


%binary 확인 (/usr/share/kibana/bin) 




2.  브라우저에서 Kibana UI 확인 


http://localhost:5601 



이때 접속이 안될 경우 Centos 방확벽  해제 및 kibana Ip Config 수정 (0.0.0.0)


$> systemctl status firewalld 


$> systemctl stop firewalld


$> systemctl disable firewalld 




[logstash 설치]


1. elastic site에서 최신버젼 다운로드


$> wget https://artifacts.elastic.co/downloads/logstash/logstash-6.1.0.rpm


$> rpm -ivh logstash-6.1.0.rpm


$> systemctl enable logstash


$> systemctl start logstash


$> systemctl status logstash


$> systemctl stop logstash


%binary 확인 (/usr/share/logstash/bin) 


%conf.d 및 Data file Path 확인 (/etc/logstash/logstash.yml 참조) 


'→[ELK]' 카테고리의 다른 글

Mariadb & Logstash 연동  (0) 2018.02.02