[Elastic] Window 로컬에서 ELK 스택 설치 (ver 7.17.0)

Seung Hyeon ·2023년 5월 8일
0
post-thumbnail

Logstash(로그스태시) 설치

  1. Logstash 7.17.0 버전 다운 및 압축해제 후 C:\Users\USER 경로에 파일 저장
  2. C:\Users\USER\logstash-7.17.0\bin 경로에서 $ .\logstash.bat 실행
  3. 초반에는 pipeline.yml 내용이 비어져 있으니까 다음과 같은 에러가 나옴

ElasticSearch(엘라스틱 서치) 설치

  1. Logstash 7.17.0 버전 다운 및 압축해제 User 폴더에 저장
  2. bin경로에서 elasticsearch.bat 파일을 실행 (명령어: $ .\elasticsearch.bat)
  3. localhost:9200에 접속해서 아래의 사진처럼 나오면 서버 연결 성공

    ⚠️ 만약 localhost:9200 사이트 실행 시 “지금 이 페이지가 작동하지 않습니다” 라고 나오는 경우,
    elasticsearch.yml 파일에서 xpack.security.enabled와 xpack.security.enrollment.enabled를 false로 바꾼 후 재실행하면 정상 작동한다.
# Enable security features

xpack.security.enabled: false
xpack.security.enrollment.enabled: false

Kibana(키바나) 설치

  1. kibana 7.17.0 버전 다운 및 압축해제 User 폴더에 저장
  2. bin경로에서 kibana.bat 파일을 실행 (명령어: $ .\kibana.bat)
  3. localhost:5601에 접속

    서버 구동 성공

 



※ Logstash, ElasticSearch, Kibana 모두 버전이 같아야함. (같지 않으면 에러 발생)

profile
안되어도 될 때까지

0개의 댓글