Microservice real-time log analysis FileBeat Elasticsearch Kibana

Goal: To realize the summary and easy analysis of microservices

YUM edit

To add the Beats repository for YUM:

  1. Download and install the public signing key:

    sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
  2. Create a file with a .repo extension (for example, beats.repo) in your /etc/yum.repos.d/directory and add the following lines:

    [beats]
    name=ElasticBeatsRepository
    baseurl=https://packages.elastic.co/beats/yum/el/$basearch
    enabled=1
    gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
    gpgcheck=1

    Your repository is ready to use. For example, you can install Filebeat by running:

    sudo yum install filebeat
  3. To configure the beat to start automatically during boot, run:

    sudo chkconfig --add filebeat

          rpm -ql filebeat can view the installed directory.

 Logstash repo

  1. To configure the beat to start automatically during boot, run:

    [logstash-2.3]
    name=Logstash repository for 2.3.x packages
    baseurl = https: //packages.elastic.co/logstash/2.3/centos
    gpgcheck=1
    gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
    enabled=1

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326819087&siteId=291194637
Recommended