Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active June 10, 2018 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dgadiraju/6d53773d41e76e5620c25ebcdf90f249 to your computer and use it in GitHub Desktop.
Save dgadiraju/6d53773d41e76e5620c25ebcdf90f249 to your computer and use it in GitHub Desktop.
# 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