beats(5)

https://github.com/elastic/beats-dashboards

一、介绍

filebeat貌似功能笔logstash更好,是下一代的日志收集器。

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

packetbeat可以分析某个时间段mysql或者mongodb的慢查询日志情况;还有I/O吞吐量;这个时间段内经常执行的查询语句,http访问情况等信息;然后将分析出来的结果以图表的形式展现出来。

二、需要的beats包

filebeat-1.2.3-x86_64.rpm

topbeat-1.2.2-x86_64.rpm

packetbeat-1.2.2-x86_64.rpm

三、安装beats


1、安装filebeat

[[email protected] ~]# rpm -ivh filebeat-1.2.3-x86_64.rpm

warning: filebeat-1.2.3-x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY

Preparing...                ########################################### [100%]

1:filebeat               ########################################### [100%]

[[email protected] ~]# curl -XPUT ‘http://localhost:9200/_template/filebeat?pretty‘ [email protected]/etc/filebeat/filebeat.template.json

{

"acknowledged" : true

}

[[email protected] ~]# /etc/init.d/filebeat start

Stopping filebeat:                                         [FAILED]

Starting filebeat:                                         [  OK  ]

2、安装topbeat

[[email protected] ~]# rpm -ivh topbeat-1.2.2-x86_64.rpm

Preparing...                ########################################### [100%]

package topbeat-1.2.2-1.x86_64 is already installed

[[email protected] ~]# curl -XPUT ‘http://localhost:9200/_template/topbeat‘ [email protected]/etc/topbeat/topbeat.template.json

{"acknowledged":true}

[[email protected] ~]# /etc/init.d/topbeat start

3、安装packetbeat

[[email protected] ~]# rpm -ivh packetbeat-1.2.2-x86_64.rpm

Preparing...                ########################################### [100%]

package packetbeat-1.2.2-1.x86_64 is already installed

[[email protected] ~]# curl -XPUT ‘http://localhost:9200/_template/packetbeat‘ [email protected]/etc/packetbeat/packetbeat.template.json

{"acknowledged":true}

[[email protected] ~]# /etc/init.d/topbeat start

Starting topbeat:                                          [  OK  ]

4、安装dashboards

[[email protected] ~]# git clone https://github.com/elastic/beats-dashboards.git

Initialized empty Git repository in /root/beats-dashboards/.git/

remote: Counting objects: 1303, done.

remote: Total 1303 (delta 0), reused 0 (delta 0), pack-reused 1303

Receiving objects: 100% (1303/1303), 2.75 MiB | 152 KiB/s, done.

Resolving deltas: 100% (892/892), done.

[[email protected] ~]# cd beats-dashboards

[[email protected] beats-dashboards]# sh load.sh -url http://localhost:9200

Loading dashboards to http://localhost:9200 in .kibana

{"error":"IndexAlreadyExistsException[[.kibana] already exists]","status":400}{"acknowledged":true}Loading search Cache-transactions:

{"_index":".kibana","_type":"search","_id":"Cache-transactions","_version":1,"created":true}

Loading search DB-transactions:

{"_index":".kibana","_type":"search","_id":"DB-transactions","_version":1,"created":true}

Loading search Default-Search:

{"_index":".kibana","_type":"search","_id":"Default-Search","_version":1,"created":true}

Loading search Filesystem-stats:

{"_index":".kibana","_type":"search","_id":"Filesystem-stats","_version":1,"created":true}

Loading search HTTP-errors:

{"_index":".kibana","_type":"search","_id":"HTTP-errors","_version":1,"created":true}

Loading search MongoDB-errors:

{"_index":".kibana","_type":"search","_id":"MongoDB-errors","_version":1,"created":true}

Loading search MongoDB-transactions:

{"_index":".kibana","_type":"search","_id":"MongoDB-transactions","_version":1,"created":true}

Loading search MongoDB-transactions-with-write-concern-0:

{"_index":".kibana","_type":"search","_id":"MongoDB-transactions-with-write-concern-0","_version":1,"created":true}

5、添加beats索引

时间: 2025-01-09 10:19:56

beats(5)的相关文章

python函数(2):函数进阶

昨天说了函数的一些最基本的定义,今天我们继续研究函数.今天主要研究的是函数的命名空间.作用域.函数名的本质.闭包等等 预习: 1.写函数,用户传入修改的文件名,与要修改的内容,执行函数,完成整个文件的批量修改操作 2.写函数,检查用户传入的对象(字符串.列表.元组)的每一个元素是否含有空内容. 3.写函数,检查传入字典的每一个value的长度,如果大于2,那么仅保留前两个长度的内容,并将新内容返回给调用者. dic = {"k1": "v1v1", "k2

Virtual方法(虚方法)和Abstract方法(抽象方法)

一.Virtual方法(虚方法) virtual 关键字用于在基类中修饰方法.virtual的使用会有两种情况:情况1:在基类中定义了virtual方法,但在派生类中没有重写该虚方法.那么在对派生类实例的调用中,该虚方法使用的是基类定义的方法.情况2:在基类中定义了virtual方法,然后在派生类中使用override重写该方法.那么在对派生类实例的调用中,该虚方法使用的是派生重写的方法. 当一个方法被声明为Virtual时,它是一个虚拟方法,直到你使用ClassName variable =

Linux服务器集群系统(一)(转)

add by zhj:虽然是2002年的文章,但读来还是收益良多.在 章文嵩:谈LVS及阿里开源背后的精彩故事 中LVS发起人及主要贡献者谈了LVS的开发过程及阿里开源的一些故事 原文:http://www.linuxvirtualserver.org/zh/lvs1.html 本文介绍了Linux服务器集群系统--LVS(Linux Virtual Server)项目的产生背景和目标,并描述了LVS服务器集群框架及目前提供的软件,列举LVS集群系统的特点和一些实际 应用,最后,本文谈论了LVS

Logstash语法常用案例解析(一)

摘要 简述logstash的常用插件,以及简单的使用案例 一:基础运行 建议使用supervisor来管理ELK中的各个组件,方便同一管理 安装 https://www.aolens.cn/?p=809      有讲解 提供一个常用的配置: [program:logstash] command=/opt/logstash/bin/logstash -f /opt/logstash/conf/index.conf numprocs=1 ;开几个进程 dirrectory=/opt/logstas

centos7搭建ELK Cluster集群日志分析平台(二)

续  centos7搭建ELK Cluster集群日志分析平台(一) 已经安装完Elasticsearch 5.4 集群. 安装Logstash步骤 1. 安装Java 8 官方说明:需要安装Java 8 ,不支持Java 9... //自行安装,略过 2. 安装Logstash 可以同elasticsearch一样建立repo文件通过yum安装,也可以去官网直接下载rpm包进行本地安装:   ~]# rpm -ivh logstash-5.4.0.rpm  //这里直接下载好进行本地安装 3.

(转)python生态环境简介

Python生态环境简介 作者: Mir Nazim 原文: Python Ecosystem - An Introduction 译者: dccrazyboy  原译: Python生态环境简介 当开发人员从PHP,Ruby或者别的开发环境转换到Python时,所面对的最大问题是缺乏对Python开发的生态环境的充分理解.开发人员非常想得到一份关于完成大多数任务的指南或资源,而不论使用的方法是否规范. 下文所讲到的基本上都来源于我的网站,那存储着Python环境下对于网络应用开发的一些基本资料

【POJ 3071】 Football(DP)

[POJ 3071] Football(DP) Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 4350   Accepted: 2222 Description Consider a single-elimination football tournament involving 2n teams, denoted 1, 2, -, 2n. In each round of the tournament, all tea

VII (8) Python(并行开发)

VII8Python(并行开发) In [1]: import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better tha

Python基础知识(一) 初识Python

Python简介 一.Python介绍 Python(英国发音:/?pa?θ?n/ 美国发音:/?pa?θɑ?n/),是一种广泛使用的高级编程语言,属于通用型编程语言,由吉多·范罗苏姆创造,第一版发布于1991年.可以视之为一种改良(加入一些其他编程语言的优点,如面向对象)的 LISP.作为一种解释型语言,Python 的设计哲学强调代码的可读性和简洁的语法(尤其是使用空格缩进划分代码块,而非使用大括号或者关键词).相比于C++或Java,Python让开发者能够用更少的代码表达想法.不管是小型