Skip to content

flume append file sink(flume追加内容到文件sink)

Notifications You must be signed in to change notification settings

gojuukaze/flume-append-file-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flume-append-file-sink

中文README.MD

Requirements

  • Flume-NG >= 1.7
  • Linux
  • MacOS

Build

$ mvn clean package

Download Jar

flume-append-file-sink-1.0.jar

Configuration:

Property Name Default Description
sink.fileName - file name
sink.appendToolDir - the path which the append tool will be saved to
sink.batchSize 100 how many messages to process in one batch

Configuration Example:

a1.sinks.k1.type = cn.ikaze.flume.sink.AppendFile
a1.sinks.k1.sink.fileName = /var/log/access.log
a1.sinks.k1.sink.appendToolDir = /home/gojuukaze/.append_file_tool

FAQ:

  • Your characters are not displayed properly:
    Try changing the system locale,
    ex:
    centos 7: 
    $ echo 'LANG="zh_CN.UTF-8"' >>/etc/locale.conf
    

About

flume append file sink(flume追加内容到文件sink)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages