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)Javajre1.8.0_45injava.exe" -Xmx1024m -Dlog4j.configuration=file:///C:apache-flume-1.5.0-binconflog4j.properties -cp "C:apache-flume-1.5.0-binlib*" org.apache.flume.node.Application -f C:apache-flume-1.5.0-binconf estconsole.conf -n syslog-agent