agent2配置
agent2.sources=s1
agent2.channels=c1agent2.sinks=k1
agent2.sources.s1.type = spooldir
agent2.sources.s1.spoolDir =/var/log/hutxlog
agent2.sources.s1.fileHeader =true
agent2.sources.s1.fileHeaderKey=filename
agent2.sources.s1.basenameHeader=true
agent2.sources.s1.basenameHeaderKey=gcstat2
agent2.sources.s1.channels = c1
agent2.channels.c1.type=memory
agent2.sinks.k1.type=logger
agent2.sinks.k1.channel=c1
agent1配置
agent1.sources=s1
agent1.channels=c1
agent1.sinks=k1
agent1.sources.s1.type = spooldir
agent1.sources.s1.spoolDir = /var/log/hutxlog
agent1.sources.s1.fileHeader =ture
agent1.sources.s1.fileHeaderKey=filenamesource
agent1.sources.s1.channels = c1
agent1.sources.s1.ignorePattern=^.*tmp$<