filebeat6.2.2 forApache logs/MySQL logs/Nginx logs/Redis logs/System logs模块安装

 filebeat6.2.2 forApache logs/MySQL logs/Nginx logs/Redis logs/System logs模块安装

1Install Elasticsearch GeoIP anduser agent plugins

This module requires twoElasticsearch plugins that are not installed by default.

From the Elasticsearchinstallation folder, run:

bin/elasticsearch-plugin install ingest-geoip

bin/elasticsearch-plugin install ingest-user-agent

2Download and install Filebeat

First time using Filebeat? Seethe Getting Started Guide.

curl -L -Ohttps://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.2.2-x86_64.rpm

sudo rpm -vi filebeat-6.2.2-x86_64.rpm

Lookingfor the 32 bits packages? See the Download page.

3、Edit the configuration

Modify /etc/filebeat/filebeat.yml to set the connectioninformation:

output.elasticsearch:

 hosts: ["<es_url>"]

 username: "elastic"

 password: "<password>"

setup.kibana:

 host: "<kibana_url>"

Where <password> isthe password of the elastic user, <es_url> is the URLof Elasticsearch, and <kibana_url> is the URL of Kibana.

4、Enable and configure the nginx module

    a、sudofilebeat modules enable nginx

Modify the settings inthe /etc/filebeat/modules.d/nginx.yml file.

    b、sudofilebeat modules enable apache2

Modify the settings inthe /etc/filebeat/modules.d/apache2.yml file.

     c、sudofilebeat modules enable mysql

Modifythe settings in the /etc/filebeat/modules.d/mysql.yml file.

     d、sudofilebeat modules enable system

Modifythe settings in the /etc/filebeat/modules.d/system.yml file.

     e、sudofilebeat modules enable redis

Modifythe settings in the /etc/filebeat/modules.d/redis.yml file.

 5、Start Filebeat

The setup command loads the Kibanadashboards. If the dashboards are already set up, omit this command.

filebeat setup

systemctl start filebeat.service


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值