当前位置:网站首页>Logstash~Logstash配置(logstash.yml)详解
Logstash~Logstash配置(logstash.yml)详解
2022-07-04 14:24:00 【飞Link】
文件路径 logstash/config/logstash.yml
# ---------- Node identity ----------
# 节点名称,默认主机名
node.name: test
# ---------- Data path ----------
# 数据存储路径,默认LOGSTASH_HOME/data
path.data:
# ---------- Pipeline Settings ----------
# pipeline ID,默认main
pileline.id: main
# 输出通道的工作workers数据量,默认cpu核心数
pipeline.workers:
# 单个工作线程尝试执行其过滤器和输出之前将从输入手机的最大事件数量,默认125
pipeline.batch.size: 125
# 将较小的批处理分派给管道之前,等待的毫秒数,默认50ms
pipeline.batch.delay: 50
# 此值为true时,即使内存中仍然有运行中事件,也会强制Logstash在关机期间退出
pipeline.unsafe_shutdown: false
# 管道事件排序
# 可选项: auto,true,false,默认auto
pipeline.ordered: auto
# ---------- Pipeline Configuration Settings ----------
# 配置文件路径
path.config:
# 主管道的管道配置字符串
config.string:
# 该值为true时,检查配置是否有效,然后退出,默认false
config.test_and_exit: false
# 该值为true时,会定期检查配置是否已更改,并在更改后重新加载配置,默认false
config.reload.automatic: false
# 检查配置文件更改的时间间隔,默认3s
config.reload.interval: 3s
# 该值为true时,将完整编译的配置显示为调试日志消息,默认为false
config.debug: false
# 该值为true时,开启转移
config.support_escapes: false
# ---------- HTTP API Settings ----------
# 是否开启htp访问,默认true
http.enabled: true
# 绑定主机地址,可以是ip,主机名,默认127.0.0.1
http.host: 127.0.0.1
# 服务监听端口,可以是单个端口,也可以是范围端口,默认9600-9700
http.port: 9600-9700
# ---------- Module Settings ----------
# 模块定义,必须为数组
# 模块变量名格式必须为var.PLUGIN_TYPE.PLUGIN_NAME.KEY
modules:
- name: MODULE_NAME
var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
# ---------- Queuing Settings ----------
# 事件缓冲的内部排队模型,可选项:memory,persisted,默认memory
queue.type: memory
# 启用持久队列(queue.type: persisted)后将在其中存储数据文件的目录路径
# 默认path.data/queue
path.queue:
# 启用持久队列(queue.type: persisted)后,队列中未读事件的最大数量
# 默认0
queue.max_events: 0
# 启用持久队列(queue.type: persisted)后,队列的总容量,单位字节,默认1024mb
queue.max_bytes: 1024mb
# 启用持久队列(queue.type: persisted)后,在强制检查点之前的最大ACKed事件数,默认1024
queue.checkpoint.acks: 1024
# 启用持久队列(queue.type: persisted)后,在强制检查点之前的最大书面时间数,默认1024
queue.checkpoint.writes: 1024
# 启用持久队列(queue.type: persisted)后,执行检查点的时间间隔,单位ms,默认1000ms
queue.checkpoint.interval: 1000
# ---------- Dead-Letter Queue Settings ----------
# 是否启用插件支持的DLQ功能的标志,默认false
dead_letter_queue.enable: false
# dead_letter_queue.enable为true时,每个死信队列的最大大小
# 若死信队列的大小超出该值,则被删除,默认1024mb
dead_letter_queue.max_bytes: 1024mb
# 死信队列存储路径,默认path.data/dead_letter_queue
path.dead_letter_queue:
# ---------- Debugging Settings ----------
# 日志输出级别,选项:fatal,error,warn,info,debug,trace,默认info
log.level: info
# 日志格式,选项:json,plain,默认plain
log.format:
# 日志路径,默认LOGSTASH_HOME/logs
path.logs:
# ---------- Other Settings ----------
# 插件存储路径
path.plugins: []
# 是否启用每个管道在不同日志文件中的日志分隔
# 默认false
pipeline.separate_logs: false
=>=>=>=>=> 文章来源 <=<=<=<=<=
边栏推荐
- Techsmith Camtasia Studio 2022.0.2屏幕录制软件
- %f格式符
- Kubernets pod exists finalizers are always in terminating state
- mysql 联合主键_Mysql 创建联合主键[通俗易懂]
- LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
- Unity脚本常用API Day03
- Is BigDecimal safe to calculate the amount? Look at these five pits~~
- 内存管理总结
- unity update 协程_Unity 协程的原理
- Unity脚本介绍 Day01
猜你喜欢
暑期复习,一定要避免踩这些坑!
Summer Review, we must avoid stepping on these holes!
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Unity脚本生命周期 Day02
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
The per capita savings of major cities in China have been released. Have you reached the standard?
华为云数据库DDS产品深度赋能
MySQL学习笔记——数据类型(2)
03-存储系统
Unity脚本常用API Day03
随机推荐
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
Halcon knowledge: NCC_ Model template matching
进制乱炖
Hexadecimal form
.Net 应用考虑x64生成
LeetCode 35. 搜索插入位置 —vector遍历(O(logn)和O(n)的写法---二分查找法)
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
How to build a technical team that will bring down the company?
智能客服赛道:网易七鱼、微洱科技打法迥异
What are the concepts of union, intersection, difference and complement?
十六进制
Leecode learning notes - Joseph problem
夜天之书 #53 Apache 开源社群的“石头汤”
selenium 元素交互
Helix swarm Chinese package is released, and perforce further improves the user experience in China
从0到1建设智能灰度数据体系:以vivo游戏中心为例
【大连理工大学】考研初试复试资料分享
Unity脚本API—Component组件
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)