当前位置:网站首页>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
=>=>=>=>=> 文章来源 <=<=<=<=<=
边栏推荐
猜你喜欢
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
What is the future of the booming intelligent Internet of things (aiot) in recent years?
Luo Gu - some interesting questions
微博、虎牙挺进兴趣社区:同行不同路
go-zero微服务实战系列(九、极致优化秒杀性能)
每周招聘|高级DBA年薪49+,机会越多,成功越近!
Redis 解决事务冲突之乐观锁和悲观锁
中国主要城市人均存款出炉,你达标了吗?
Deep learning network regularization
Introduction to asynchronous task capability of function calculation - task trigger de duplication
随机推荐
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
Luo Gu - some interesting questions 2
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
Implementation of web chat room
How to build a technical team that will bring down the company?
基于MAX31865的温度控制系统
MySQL learning notes - data type (numeric type)
一篇文章学会GO语言中的变量
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
宽度精度
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
Decimal, exponential
Leetcode 1200 minimum absolute difference [sort] The Path of leetcode for heroding
进制乱炖
Enter the width!
.Net 应用考虑x64生成
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing