Beats 설치

김수민·2020년 4월 26일
0

https://www.elastic.co/guide/en/elastic-stack-get-started/7.6/get-started-elastic-stack.html#install-beats

beats는 open source data shipper다.
beats는 Elasticsearch 또는 Logstash로 데이터를 보낼 수 있다.
beats는 개별적으로 설치가능한 프로그램 이다.
아래 예제에서는 system moudule을 이용하여 Metricbeat를 통해 system 데이터를 수집한다.

1) Install Metricbeat

curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.6.2-x86_64.rpm
sudo rpm -vi metricbeat-7.6.2-x86_64.rpm

2) system metrics을 Elasticsearch로 보내기

Metricbeat는 system 모니터링을 위해 즉시 사용가능하도록 만들어진 모듈이다.
system 모듈이 OS의 metric을 수집하도록 하는 방법을 배운다.

  1. system module 실행하기
sudo metricbeat modules enable system
  1. initial environment 설정
sudo metricbeat setup -e
  1. Start Metricbeat
sudo service metricbeat start
  1. kibana에서 데이터 확인
    http://myhosturl:5601/app/kibana#/dashboard/Metricbeat-system-overview-ecs
profile
python developer

0개의 댓글