# The configuration file needs to define the sources, # the channels and the sinks. # Sources, channels and sinks are defined per agent, # in this case called 'agent'
# For each one of the sources, the type is defined localagent.sources.localSource.type = netcat localagent.sources.localSource.bind = localhost localagent.sources.localSource.port = 44444
# The channel can be defined as follows. localagent.sources.localSource.channels = localChannel
# Each sink's type must be defined localagent.sinks.localSink.type = logger
#Specify the channel the sink should use localagent.sinks.localSink.channel = localChannel
# Each channel's type is defined. localagent.channels.localChannel.type = memory
# Other config values specific to each type of channel(sink or source) # can be defined as well # In this case, it specifies the capacity of the memory channel localagent.channels.localChannel.capacity = 100
2014-08-1721:09:26,936 (SinkRunner-PollingRunner-DefaultSinkProcessor) [INFO - org.apache.flume.sink.LoggerSink.process(LoggerSink.java:70)] Event: { headers:{} body: 74686973206973206D 79206669727374 this is my first }