# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# 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'
# 单节点Flume配置示例
# 三个组件起一个别名
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# source属性配置信息
a1.sources.r1.type=exec
a1.sources.r1.command=tail -F /home/hadoop/data.log
# sink属性配置信息
a1.sinks.k1.type=logger
# channel属性配置信息
a1.channels.c1.type=memory
a1.channels.c1.capacity=1000
a1.channels.c1.transactionCapacity=100
# 绑定source和sink到channel上
a1.sources.r1.channels=c1
a1.sinks.k1.channel=c1
Flume日志监控配置flume-conf2.properties 采集日志数据并输出到控制台
于 2023-06-30 08:06:26 首次发布