Centos安装Packetbeat极简手册
来源:互联网 发布:linux发行版 编辑:程序博客网 时间:2024/06/05 09:33
官方安装步骤
https://www.elastic.co/guide/en/beats/packetbeat/master/packetbeat-getting-started.html
官方下载
https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.3.2-linux-x86_64.tar.gz
解压
tar -zxvf packetbeat-5.3.2-linux-x86_64.tar.gz
修改配置文件
packetbeat.yml
启动packetbeat
sudo ./packetbeat -e -c packetbeat.yml
后台运行:
nohup ./packetbeat -e -c packetbeat.yml > /var/log/packetbeat.log &
手动加载packetbeat模版
curl -H ‘Content-Type: application/json’ -XPUT ‘http://localhost:9200/_template/packetbeat’ -d@/server/packetbeat/packetbeat.template.json
如果之前安装过,可先卸载:
If you’ve already used Packetbeat to index data into Elasticsearch, the index may contain old documents. After you load the index template, you can delete the old documents from packetbeat-* to force Kibana to look at the newest documents. Use this command:
curl -XDELETE 'http://localhost:9200/packetbeat-*'
增加http头信息
packetbeat.protocols.http: # Configure the ports where to listen for HTTP traffic. You can disable # the HTTP protocol by commenting out the list of ports. ports: [80, 8080, 8000, 5000, 8002] send_request: true send_response: true
重启后,http包即包含request与response信息
参考字段配置文章,包含http、mongodb等信息:
http://www.ttlsa.com/elk/elk-packetbeat-protocols-and-processes-configure-options/
导入预置面板
在安装Packetbeat的目录下,找到导入面板的脚本,并运行。
运行后,可在Kibana中打开,查看预置面板http://127.0.0.1:5601
From the directory where you installed Packetbeat, run the import_dashboards script.
./scripts/import_dashboards
面板预览
- Centos安装Packetbeat极简手册
- packetbeat+elasticsearch+kibana集成手册
- CentOS安装ElasticSearch极简手册
- CentOS安装kibana极简手册
- centos安装手册
- CentOS安装手册
- CentOS VMware Tools 安装手册
- centos 下zend framework安装手册
- centos 下 Hadoop+Hbase 安装手册
- CentOS 下 Hadoop+Hbase 安装手册
- CentOS 下 Hadoop+Hbase 安装手册
- centos 安装C语言帮助手册
- centos 安装C语言帮助手册
- CentOS-7安装手册MySQL5.6
- Centos安装中文man手册(命令行)
- Centos Docker 中安装Manual手册
- 如何在CentOS 7上使用Packetbeat和ELK收集基础结构指标
- Centos 安装R 集成 Hadoop、RHive 配置安装手册
- Android 判断是否是手机或平板。
- C语言学习历程——编程练习3——05
- u-blox 6数据
- For vue cli hot update no useful
- slide window(滑窗)MATLAB代码
- Centos安装Packetbeat极简手册
- Android系统服务
- SVM手写字符识别
- 友盟吴磊:移动大数据平台的架构、实践与数据增值
- poj 1258 Agri-Net
- 关于距离变换函数distanceTransform使用注意事项
- TAGG模块使nodejs变多线程,真正的非阻塞
- Java基础——Java异常
- NoSuchBeanDefinitionException: No bean named 'usersService' is defined