ELK学习二:filebeat收集

简介: ELK学习二:filebeat收集

下载安装地址:

https://www.elastic.co/cn/downloads/beats/filebeat

配置filebeat

filebeat配置分为2个部分,input和output:

input:

filebeat.inputs:
# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.
- type: log
  # Change to true to enable this input configuration.
  enabled: true
  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/*.log
    - /www/wwwlogs/**

output:

output.kafka:
  hosts: \["127.0.0.1:9092"\]
  # 在这里通过引用fields来指定目标topic
  topic: 'test-input'
  version: 0.11.0.0
  compression: gzip
  max\_message\_bytes: 1000000

注意,开启kafka output需要在modules.d/中将kafka.yml.disable改名为 kafka.yml

启动filebeat

./filebeat -e -c filebeat.yml -d "publish"    # 直接启动查看启动日志
nohup ./filebeat -e -c filebeat.yml >/dev/null 2>&1 &  # 后台方式启动

目录
相关文章
|
9月前
|
存储 NoSQL Redis
容器部署日志分析平台ELK7.10.1(Elasisearch+Filebeat+Redis+Logstash+Kibana)
容器部署日志分析平台ELK7.10.1(Elasisearch+Filebeat+Redis+Logstash+Kibana)
340 0
|
监控 Cloud Native 搜索推荐
Springboot/Springcloud整合ELK平台,(Filebeat方式)日志采集及管理(Elasticsearch+Logstash+Filebeat+Kibana)
Springboot/Springcloud整合ELK平台,(Filebeat方式)日志采集及管理(Elasticsearch+Logstash+Filebeat+Kibana)
1780 0
Springboot/Springcloud整合ELK平台,(Filebeat方式)日志采集及管理(Elasticsearch+Logstash+Filebeat+Kibana)
|
2月前
|
消息中间件 Kafka Apache
Kafka 架构深入介绍 及搭建Filebeat+Kafka+ELK
Kafka 架构深入介绍 及搭建Filebeat+Kafka+ELK
|
2月前
|
监控 NoSQL Redis
ELK7.x日志系统搭建 3. 采用轻量级日志收集Filebeat
ELK7.x日志系统搭建 3. 采用轻量级日志收集Filebeat
126 0
|
12月前
|
监控 NoSQL Redis
ELK7.x日志系统搭建 3. 采用轻量级日志收集Filebeat
ELK7.x日志系统搭建 3. 采用轻量级日志收集Filebeat
126 0
|
JSON 监控 搜索推荐
ELK服务搭建学习
ELK服务搭建学习
128 0
|
消息中间件 数据可视化 JavaScript
日志可视化方案:ELK+filebeat
日志可视化方案:ELK+filebeat
|
NoSQL Redis
手把手教你搭建ELK-新手必看-第六章:搭建filebeat
手把手教你搭建ELK-新手必看-第六章:搭建filebeat
158 0
手把手教你搭建ELK-新手必看-第六章:搭建filebeat
|
监控 Linux 开发工具
日志收集分析利器-ELK加FileBeat
日志收集分析利器-ELK加FileBeat
185 0
日志收集分析利器-ELK加FileBeat
|
消息中间件 监控 数据可视化
elk学习一:ELK架构图
elk学习一:ELK架构图
239 0
elk学习一:ELK架构图