Logstash转发器
在运行logstash转发器时,我发现跳过旧文件错误。
**/opt/lumberjack/bin/lumberjack -config /etc/logstash-forwarder/logstash-forwarder.conf -from-beginning=true**
2015/01/13 14:47:30 publisher init
2015/01/13 14:47:30 {
"network": {
"servers": [ "xxx.xxx.xxx.xxx:6782" ],
"ssl ca": "/etc/logstash-forwarder/server.crt",
"ssl key": "/etc/logstash-forwarder/server.key",
"timeout": 15
},
"files": [
{
"paths": [
"/opt/test/*.log"
]
}
]
}
2015/01/13 14:47:30.399484跳过旧文件:/opt/test/mc.l28.log
2015/01/13 14:47:30.399598从文件中设置受信任的CA: /etc/logstash-forwarder/server.crt
2015/01/13 14:47:30.399938连接到xxx.xxx.xx.xxx.:6782
2015/01/13 14:47:30.962701已连接至xxx.xxx.xxx.xxx:6782
答案 0 :(得分:1)
logstash-forwarder并不希望保持旧文件处于打开状态,这会占用看似陈旧的文件的系统资源。默认值为24小时。
在最新的代码中,您可以使用“死时间”更改此值。参数。