Created
July 27, 2016 11:01
-
-
Save rmoff/7b68871a1aa4ae8c7e703e759bfc2eff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source_agent.sources = syslog_tail | |
source_agent.channels = memoryChannel | |
source_agent.sinks = kafka_sink | |
# http://flume.apache.org/FlumeUserGuide.html#exec-source | |
source_agent.sources.syslog_tail.type = exec | |
source_agent.sources.syslog_tail.command = tail -F /var/log/messages | |
source_agent.sources.syslog_tail.batchSize = 1 | |
source_agent.sources.syslog_tail.channels = memoryChannel | |
# http://flume.apache.org/FlumeUserGuide.html#memory-channel | |
source_agent.channels.memoryChannel.type = memory | |
source_agent.channels.memoryChannel.capacity = 100 | |
## Write to Kafka | |
source_agent.sinks.kafka_sink.channel = memoryChannel | |
source_agent.sinks.kafka_sink.type = org.apache.flume.sink.kafka.KafkaSink | |
source_agent.sinks.kafka_sink.batchSize = 5 | |
source_agent.sinks.kafka_sink.brokerList = confluent-01-node-01:9092 | |
source_agent.sinks.kafka_sink.topic = syslogs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/flume-ng agent --name source_agent --conf ./conf/ --conf-file conf/flume-log-kafka.conf -Dflume.root.logger=DEBUG,console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment