Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse

<<기본실행>>

$flume-ng agent --conf-file flume.conf --name agent01


<<config file구조>>

agent.sources = fileRead
agent.channels = memoryChannel
agent.slnks sinks = loggerSlnkloggerSink
agent.sourcesources.fileRead.type = spooldir
agent.sourcesources.fileRead.spoolDir = /var/log/apache
agent.sourcesources.fileRead.channels = memoryChannel
agent.slnkssinks.loggerSlnkloggerSink.type = file_roll
agent.slnkssinks.loggerSlnkloggerSink.slnksink.directory = /home/apache
agent.sinks.slnksloggerSlnkloggerSink.slnksink.rollInterval = 0
agent.slnkssinks.loggerSlnkloggerSink.channel = memoryChannel
agent.channels.memoryChannel.type = memory
agent.channels.memoryChannel.capacity = 100

...