1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| 2020/03/28 20:25:17.581 [D] 导入日志成功&{debug E:\\Go\\logCollect\\logAgent\\logs\\my.log 100 0.0.0.0:9092 [] 0.0.0.0:2379 /backend/logagent/config/} 2020/03/28 20:25:17.589 [D] resp from etcd:[] 2020/03/28 20:25:17.590 [D] resp from etcd:[] 2020/03/28 20:25:17.590 [D] resp from etcd:[] 2020/03/28 20:25:17.591 [D] resp from etcd:[] 2020/03/28 20:25:17.613 [D] resp from etcd:[key:"/backend/logagent/config/192.168.0.11" create_revision:6 mod_revision:12 version:7 value:"[{\"logpath\":\"E:/nginx/logs/access.log\",\"topic\":\"nginx_log\"},{\"logpath\":\"E:/nginx/logs/error.log\",\"topic\":\"nginx_log_err\"},{\"logpath\":\"E:/nginx/logs/error2.log\",\"topic\":\"nginx_log_err2\"}]" ] 2020/03/28 20:25:17.613 [D] 日志设置为[{E:/nginx/logs/access.log nginx_log} {E:/nginx/logs/error.log nginx_log_err} {E:/nginx/logs/error2.log nginx_log_err2}] 2020/03/28 20:25:17.613 [D] resp from etcd:[] 2020/03/28 20:25:17.613 [D] 连接etcd成功 2020/03/28 20:25:17.613 [D] 初始化etcd成功! 2020/03/28 20:25:17.613 [D] 初始化tailf成功! 2020/03/28 20:25:17.613 [D] 开始监控key: /backend/logagent/config/192.168.0.1 2020/03/28 20:25:17.613 [D] 开始监控key: /backend/logagent/config/169.254.109.181 2020/03/28 20:25:17.614 [D] 开始监控key: /backend/logagent/config/192.168.106.1 2020/03/28 20:25:17.615 [D] 开始监控key: /backend/logagent/config/169.254.30.148 2020/03/28 20:25:17.616 [D] 开始监控key: /backend/logagent/config/169.254.153.68 2020/03/28 20:25:17.616 [D] 开始监控key: /backend/logagent/config/192.168.0.11 2020/03/28 20:25:17.617 [D] 初始化Kafka producer成功,地址为: 0.0.0.0:9092 2020/03/28 20:25:17.617 [D] 初始化Kafka成功! 2020/03/28 20:26:31.675 [D] get config from etcd ,Type: PUT, Key:/backend/logagent/config/192.168.0.11, Value:[{"logpath":"E:\\Go\\logCollect\\logAgent\\logs\\my.log","topic":"nginx_log"}]
2020/03/28 20:26:31.675 [D] get config from etcd success, [{E:\Go\logCollect\logAgent\logs\my.log nginx_log}] 2020/03/28 20:26:31.675 [W] tail obj 退出, 配置项为conf:{E:/nginx/logs/error2.log nginx_log_err2} 2020/03/28 20:26:31.675 [W] tail obj 退出, 配置项为conf:{E:/nginx/logs/access.log nginx_log} 2020/03/28 20:26:31.675 [W] tail obj 退出, 配置项为conf:{E:/nginx/logs/error.log nginx_log_err} 2020/03/28 20:26:31.947 [D] read success, pid:0, offset:34210, topic:nginx_log
2020/03/28 20:26:31.948 [D] read success, pid:0, offset:34211, topic:nginx_log
2020/03/28 20:26:32.177 [D] read success, pid:0, offset:34212, topic:nginx_log
2020/03/28 20:26:32.178 [D] read success, pid:0, offset:34213, topic:nginx_log
2020/03/28 20:26:32.180 [D] read success, pid:0, offset:34214, topic:nginx_log
2020/03/28 20:26:32.180 [D] read success, pid:0, offset:34215, topic:nginx_log
2020/03/28 20:26:32.427 [D] read success, pid:0, offset:34216, topic:nginx_log
2020/03/28 20:26:32.428 [D] read success, pid:0, offset:34217, topic:nginx_log
2020/03/28 20:26:32.430 [D] read success, pid:0, offset:34218, topic:nginx_log
2020/03/28 20:26:32.432 [D] read success, pid:0, offset:34219, topic:nginx_log
2020/03/28 20:26:32.432 [D] read success, pid:0, offset:34220, topic:nginx_log
2020/03/28 20:26:32.433 [D] read success, pid:0, offset:34221, topic:nginx_log
|