email: yeying0311@126.com
一个日志处理转发工具,用于日志清洗后集中管理
[system]
sleep=1
log=agent.log
[test]
name=test
regex=\S+ \S+ \S+ \S+ \S+ (userId\=(?P<uid>\d+),userType\=(?P<utp>\d))?\S+?uri\=(?P<url>\S+?),
output=%url% %uid% %utp% this is a test
source=x:/t.txt
facility=local3
[netpay]
name=netpay
source=/xxxx
filter=filter_netpay
facility=local1
[mobilepay]
name=mobilepay
source=/xxxx
filter=filter_mobilepay
facility=local2