Last active
June 10, 2018 15:22
-
-
Save dgadiraju/6d53773d41e76e5620c25ebcdf90f249 to your computer and use it in GitHub Desktop.
This file contains 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
# wskafka.conf: A single-node Flume configuration | |
# to read data from webserver logs and publish | |
# to kafka topic | |
# Name the components on this agent | |
wk.sources = ws | |
wk.sinks = kafka | |
wk.channels = mem | |
# Describe/configure the source | |
wk.sources.ws.type = exec | |
wk.sources.ws.command = tail -F /opt/gen_logs/logs/access.log | |
# Describe the sink | |
wk.sinks.kafka.type = org.apache.flume.sink.kafka.KafkaSink | |
wk.sinks.kafka.brokerList = nn01.itversity.com:6667,nn02.itversity.com:6667,rm01.itversity.com:6667 | |
wk.sinks.kafka.topic = fkdemodg | |
# Use a channel wkich buffers events in memory | |
wk.channels.mem.type = memory | |
wk.channels.mem.capacity = 1000 | |
wk.channels.mem.transactionCapacity = 100 | |
# Bind the source and sink to the channel | |
wk.sources.ws.channels = mem | |
wk.sinks.kafka.channel = mem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment