Flume持久化本地sink配置

a1.sources = r1
a1.sinks = k1
a1.channels = c1
 
a1.sources.r1.type = syslogudp
a1.sources.r1.port = 514
a1.sources.r1.host = 0.0.0.0

#a1.sinks.k1.type = logger

a1.sinks.k1.type = file_roll
a1.sinks.k1.sink.directory=E:/localbigdata/apache-flume-1.7.0-bin/logs
a1.sinks.k1.sink.rollInterval=0 

a1.channels.c1.type = memory
a1.channels.c1.capacity = 10000
a1.channels.c1.transactionCapacity = 10000
 
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

你可能感兴趣的:(Flume持久化本地sink配置)