首页 > 其他 > 详细

filebeat安装配置

时间:2019-04-24 10:12:06      阅读:167      评论:0      收藏:0      [点我收藏+]

官网下载好包后直接配置 filebeat.yml

 wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.3.0-linux-x86_64.tar.gz
 tar xvf filebeat-6.3.0-linux-x86_64.tar.gz 
 mv filebeat-6.3.0-linux-x86_64 /usr/local/filebeat
cd /usr/local/filebeat
vim  filebeat.yml
- type: log
 
  # Change to true to enable this input configuration.
  enabled: true
 
  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /data/logs/json/*.log
    #- c:\programdata\elasticsearch\logs\*
  json.keys_under_root: true
  json.overwrite_keys: true
output.kafka:
  enabled: true
  hosts: ["172.16.0.121:9092"]
  topic: cms-web-access

我这是写到kafka的 用别名方式 需要绑定hosts cms-web-access到kafka主机
配置好后就可以启动了

nohup /usr/local/filebeat/filebeat -e -c /usr/local/filebeat/filebeat.yml >/dev/null 2>&1 &

filebeat安装配置

原文:https://www.cnblogs.com/cheyunhua/p/10760481.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!