ELK之topbeat部署

本文介绍如何使用Topbeat定期收集系统信息并发送至Elasticsearch进行索引,通过Kibana展示数据。包括安装配置Topbeat、配置Elasticsearch模板及启动Topbeat的方法。

topbeat定期收集系统信息如每个进程信息、负载、内存、磁盘等等,然后将数据发送到elasticsearch进行索引,最后通过kibana进行展示。

下面是具体的安装及配置步骤:

1、安装topbeat

$ tar zxf topbeat-1.3.1-x86_64.tar.gz
$ mv topbeat-1.3.1 topbeat

2、配置topbeat

$ vim topbeat/topbeat.yml #修改如下内容
input:
  # In seconds, defines how often to read server statistics
  period: 10

  # Regular expression to match the processes that are monitored
  # By default, all the processes are monitored
  procs: [".*"]

  # Statistics to collect (all enabled by default)
  stats:
    # per system statistics, by default is true
    system: true

    # per process statistics, by default is true
    process: true

    # file system information, by default is true
    filesystem: true

    # cpu usage per core, by default is false
    cpu_per_core: true

output:

  ### Elasticsearch as output
  elasticsearch:
    hosts: ["ip:9200"]

3、配置elasticsearch模板

$ curl -XPUT 'http://ip:9200/_template/topbeat' -d@/data/elk/topbeat/topbeat.template.json

4、启动topbeat

$ cd topbeat/
$ nohup ./topbeat &

最后看一下在Kibana中的数据及图表展示:

转载于:https://www.cnblogs.com/Eivll0m/p/6149570.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值