logstash 不能监控采集到已存在的文件
这是我的配置,版本是5.4.1,从file到kafka,请大神指教!!!江湖救急啊!!!解决有红包啊!!!
input {
file {
path=> [ "/tmp/nfs/*/*.txt" ]
discover_interval => 0
ignore_older => 864000
start_position => "beginning"
}
}
output {
kafka {
topic_id => "record_test"
codec => plain {
format => "%{message}"
charset => "UTF-8"
}
bootstrap_servers => "192.168.15.195:9092"
}
stdout{codec=>rubydebug}
}
这是我的配置,版本是5.4.1,从file到kafka,请大神指教!!!江湖救急啊!!!解决有红包啊!!!
input {
file {
path=> [ "/tmp/nfs/*/*.txt" ]
discover_interval => 0
ignore_older => 864000
start_position => "beginning"
}
}
output {
kafka {
topic_id => "record_test"
codec => plain {
format => "%{message}"
charset => "UTF-8"
}
bootstrap_servers => "192.168.15.195:9092"
}
stdout{codec=>rubydebug}
}
2 个回复
白衬衣 - 金桥
赞同来自:
ledefe
赞同来自: