[log]logstash重要参数
2017-09-17 13:57
411 查看
参考:
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-stat_interval
http://blog.csdn.net/wjacketcn/article/details/50960843
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-stat_interval
http://blog.csdn.net/wjacketcn/article/details/50960843
sincedb_path: 位置点文件路径
• Value type is string • There is no default value for this setting. • Path of the sincedb database file (keeps track of the current position of monitored log files) that will be written to disk. The default will write sincedb files to some path matching $HOME/.sincedb* • NOTE: it must be a file path and not a directory path
sincedb_write_interval: 多久记录一次位置点,默认15s
• Value type is number • Default value is 15 • How often (in seconds) to write a since database with the current position of monitored log files.
start_position: 第一次读文件时候,从头读
• Value can be any of: beginning, end • Default value is "end"
stat_interval:多久检测一次日志文件变化:默认1s
• Value type is number • Default value is 1 • How often (in seconds) we stat files to see if they have been modified. Increasing this interval will decrease the number of system calls we make, but increase the time to detect new log lines.
tags: 给messge打标签
• Value type is array • There is no default value for this setting. Add any number of arbitrary tags to your event. This can help with processing later. 来自 <http://blog.csdn.net/wjacketcn/article/details/50960843>
type: 给日志增加类型字段
• Value type is string • There 4000 is no default value for this setting. Add a type field to all events handled by this input.
相关文章推荐
- 主从同步设置的重要参数log_slave_updates
- MySQL 重要参数 innodb_flush_log_at_trx_commit 和 sync_binlog
- 双主,主从同步设置的重要参数log_slave_updates
- Mysql JDBC URL中几个重要参数说明
- Linux性能优化的两个重要参数
- [MySQL] 参数: innodb_flush_log_at_trx_commit和sync_binlog
- php-fpm - 启动参数及重要配置详解
- innodb_flush_log_at_trx_commit参数
- Linux网络配置(TCP/IP的重要参数主要是: IP, Netmask, Gateway, DNS)
- 使用logspout向Logstash发送log
- php-fpm 启动参数及重要配置详解
- Mysql一些重要配置参数的学习与整理系列
- 关于printf的大部分参数祥解---------学会一门外语是多么重要啊!!!
- Mysql JDBC URL中几个重要参数说明
- oracle重要初始参数
- logstash参数配置
- IIS log参数详解(攻防日志)
- logstash参数配置
- innodb_flush_log_at_trx_commit和sync_binlog 参数说明
- mysql重要参数配置