flume追加内容到文件末尾的sink。
仅适合1g以内的日志,再大估计会有压力,没具体测试。
Flume-NG >= 1.7
Linux
MacOS
$ mvn clean package
flume-append-file-sink-1.0.jar
a1.sinks.k1.type = cn.ikaze.flume.sink.AppendFile a1.sinks.k1.sink.fileName = /var/log/m.log a1.sinks.k1.sink.appendToolDir = /home/gojuukaze/.append_file_tool