Version
- 파일비츠 이슈 7.10.1 → 7.16.2 버전으로 설치
- 윈도우가 아닌 M1맥북 환경에서 진행
brew install
구버전 homebrew 확인
which brew
/usr/local/bin/brew 라고 뜨면 구버전이 존재하는거임 삭제해줘야함
구버전 homebrew 삭제
$ /bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh>)"
신버전 m1 homebrew설치
$ /bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
하고 기다리다보면 멈춰서 이런 메세지가나옴
==> Next steps:
- Add Homebrew to your PATH in /Users//.zprofile:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users//.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation:
<https://docs.brew.sh>
안내에 따라서 echo랑 eval을 복붙해서 실행하면됨
“이때 경로에 있는 <USER_ID> 에는 본인경로로 바꿔줘야함
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<USER_ID>/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
다시 확인해보면
$ which brew
/opt/homebrew/bin/brew
$ brew --version
Homebrew 3.1.5
bHomebrew/homebrew-core (git revision 543e4a048e; last commit 2021-05-05)
wget install
brew install wget
ELK + filebeat install
#엘라스틱 서치
wget <https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-darwin-x86_64.tar.gz>
wget <https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-darwin-x86_64.tar.gz.sha512>
shasum -a 512 -c elasticsearch-7.16.2-darwin-x86_64.tar.gz.sha512
tar -xzf elasticsearch-7.16.2-darwin-x86_64.tar.gz
#키바나
wget <https://artifacts.elastic.co/downloads/kibana/kibana-7.16.2-darwin-x86_64.tar.gz>
wget <https://artifacts.elastic.co/downloads/kibana/kibana-7.16.2-darwin-x86_64.tar.gz.sha512>
shasum -a 512 -c kibana-7.16.2-darwin-x86_64.tar.gz.sha512
tar -xzf kibana-7.16.2-darwin-x86_64.tar.gz
#로그스태시
wget <https://artifacts.elastic.co/downloads/logstash/logstash-7.16.2-darwin-x86_64.tar.gz>
wget <https://artifacts.elastic.co/downloads/logstash/logstash-7.16.2-darwin-x86_64.tar.gz.sha512>
shasum -a 512 -c logstash-7.16.2-darwin-x86_64.tar.gz.sha512
tar -xzf logstash-7.16.2-darwin-x86_64.tar.gz
#파일비츠
#<https://www.elastic.co/kr/downloads/past-releases/filebeat-7-16-2>
#일반파일, sha파일 2개 다운로드
shasum -a 512 -c filebeat-7.16.2-darwin-x86_64.tar.gz.sha512
tar -xzf filebeat-7.16.2-darwin-x86_64.tar.gz
Activate
#elasticsearch
./bin/elasticsearch
#localhost:9200
#kibana
./bin/kibana
#localhost:5601
#Logstash
./bin/logstash -e “input { stdin {} } output { stdout {} } “