apache-flume-1.5.0-bin windows

时间:2021-09-07 18:27:20

1  testconsole.conf

syslog-agent.sources = Syslog
syslog-agent.channels = MemoryChannel-1
syslog-agent.sinks = Console

syslog-agent.sources.Syslog.type = syslogTcp
syslog-agent.sources.Syslog.port = 5140

syslog-agent.sources.Syslog.channels = MemoryChannel-1
syslog-agent.sinks.Console.channel = MemoryChannel-1

syslog-agent.sinks.Console.type = logger
syslog-agent.channels.MemoryChannel-1.type = memory

2:log4j.properties

#flume.root.logger=DEBUG,console
flume.root.logger=INFO,LOGFILE

3

C:\apache-flume-1.5.0-bin>
"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -Xmx1024m -Dlog4j.configuration=file:///C:\apache-flume-1.5.0-bin\conf\log4j.properties -cp "C:\apache-flume-1.5.0-bin\lib\*" org.apache.flume.node.Application -f C:\apache-flume-1.5.0-bin\conf\testconsole.conf -n syslog-agent