Filebeat配置文件解析-转载
转载地址:https://dongbo0737.github.io/2017/06/13/filebeat-config/
Filebeat配置文件解析
filebeat 一个ELK架构中,专门用来收集数据的插件
官网:https://www.elastic.co/guide/en/beats/filebeat/5.2/index.html
filebeat安装很简单,推荐使用tar包下载,解压
配置文件需要放置在一个专门的目录中
filebeat.yml
shipper:
  name: 147240-filebeat-1
  queue_size: 1000
filebeat:
  spool_size: 2048
  idle_timeout: 2s
  registry_file: /data/logs/filebeat/filebeat-1/.filebeat #存储偏移量文件
  publish_async: false #异步推送
  prospectors:
  - paths:
    - /data/logs/tomcat/aa-am.log #定义被收集的日志的路径
    document_type: logs #文档乐行
    ignore_older: 24h # 忽略24小时之前的日志
    close_older: 1h
    scan_frequency: 10s # 10秒扫描一次文件
    tail_files: true
    force_close_files: true
    fields_under_root: true
    fields: #定义收集的日志特有属性
      app: sam
      server: tomcat
      ver: 1
      hostip: 127.0.0.1
      logname: test-am
      module: dm
      assigner: DongBo
      logid: 1476203703774
    multiline:
      pattern: '^[[:space:]]+|^Caused by:'
      negate: false
      match: after
      max_lines: 500
output.kafka: # 将收集到的日志推送到kafka中
  hosts:  ["kafkahost:port1","kafkahost:port2"]
  topic: business #定义topic
  key: business
  partition.round_robin:
      reachable_only: false
  required_acks: 1
  compression: gzip
  max_message_bytes: 1000000
logging: # filebeat自身打印日志
  level: info
  to_files: true
  to_syslog: false
  files:
    path: /data/logs/filebeat/filebeat-1
    rotateeverybytes: 104857600
    name: filebeat.log
    keepfiles: 7
Filebeat配置文件解析-转载的更多相关文章
- Logtash 配置文件解析-转载
		转载地址:https://dongbo0737.github.io/2017/06/13/logstash-config/ Logtash 配置文件解析 logstash 一个ELK架构中,专门用来进 ... 
- Hadoop配置文件解析
		Hadoop源码解析 2 --- Hadoop配置文件解析 1 Hadoop Configuration简介 Hadoop没有使用java.util.Properties管理配置文件, 也没有使 ... 
- MyBatis 源码分析 - 配置文件解析过程
		* 本文速览 由于本篇文章篇幅比较大,所以这里拿出一节对本文进行快速概括.本篇文章对 MyBatis 配置文件中常用配置的解析过程进行了较为详细的介绍和分析,包括但不限于settings,typeAl ... 
- Golang配置文件解析-oozgconf
		代码地址如下:http://www.demodashi.com/demo/14411.html 简介 oozgconf基于Golang开发,用于项目中配置文件的读取以及加载,是一个轻量级的配置文件工具 ... 
- MyBatis配置文件解析
		MyBatis配置文件解析(概要) 1.configuration:根元素 1.1 properties:定义配置外在化 1.2 settings:一些全局性的配置 1.3 typeAliases:为 ... 
- Nginx安装与配置文件解析
		导读 Nginx是一款开放源代码的高性能HTTP服务器和反向代理服务器,同时支持IMAP/POP3代理服务,是一款自由的软件,同时也是运维工程师必会的一种服务器,下面我就简单的说一下Nginx服务器的 ... 
- Python3 配置文件 解析
		/************************************************************************ * Python3 配置文件 解析 * 说明: * ... 
- Hibernate的配置文件解析
		配置mybatis.xml或hibernate.cfg.xml报错: <property name="connection.url">jdbc:mysql://loca ... 
- WCF中配置文件解析
		WCF中配置文件解析[1] 2014-06-14 WCF中配置文件解析 参考 WCF中配置文件解析 返回 在WCF Service Configuration Editor的使用中,我们通过配置工具自 ... 
随机推荐
- Express vs Koa
			Express vs Koa https://www.esparkinfo.com/express-vs-koa.html https://www.cleveroad.com/blog/the-bes ... 
- convert number or string to ASCII in js
			convert number or string to ASCII in js ASCII dictionary generator // const dict = `abcdefghijklmnop ... 
- HTTP/2 & Push Cache
			HTTP/2 & Push Cache HTTP/2 & 推送缓存 https://caniuse.com/#search=http2 https://jakearchibald.co ... 
- React LifeCycle API
			React LifeCycle API old API & new API 不可以混用 demo https://codesandbox.io/s/react-parent-child-lif ... 
- HTML marquee
			HTML marquee 跑马灯 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee https://developer ... 
- 高性能环形队列框架 Disruptor 核心概念
			高性能环形队列框架 Disruptor Disruptor 是英国外汇交易公司LMAX开发的一款高吞吐低延迟内存队列框架,其充分考虑了底层CPU等运行模式来进行数据结构设计 (mechanical s ... 
- Promise和async await详解
			本文转载自Promise和async await详解 Promise 状态 pending: 初始状态, 非 fulfilled 或 rejected. fulfilled: 成功的操作. rejec ... 
- cobra-强大的CLI应用程序库
			cobra介绍 Cobra是一个用于创建强大的现代CLI应用程序的库,也是一个用于生成应用程序和命令文件的程序. Cobra用于许多Go项目,如Kubernetes.Hugo和Github CLI等. ... 
- docker 上传到docker hub 采坑
			前面是仓库名称 后面可以命名img名字 docker push gaodi2345/wj:docker_gui 
- HDOJ-2087(KMP算法)
			剪花布条 HDOJ-2087 本题和hdoj-1686相似,唯一不同的是这里的子串一定要是单独的.所以在确定有多少个子串时不能用前面的方法.而是在循环时,只要找到一个子串,i就不是++,而是+=子串的 ... 
