我用的filebeat7.3解压版本,在两台主机上部署两个beat,每天下午6点钟左右,这两个filebeat几乎同时关闭(前后相差10毫秒左右),日志中也看不到异常,下面是日志:
2019-11-25T18:04:09.341+0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":790,"time":{"ms":14}},"total":{"ticks":2660,"time":{"ms":36},"value":2660},"user":{"ticks":1870,"time":{"ms":22}}},"handles":{"limit":{"hard":65536,"soft":65536},"open":6},"info":{"ephemeral_id":"9b083e50-ee97-4b0b-879b-43a6c4a6b312","uptime":{"ms":900142}},"memstats":{"gc_next":5010656,"memory_alloc":2529576,"memory_total":54489744},"runtime":{"goroutines":23}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":4}},"system":{"load":{"1":0.07,"15":0.4,"5":0.29,"norm":{"1":0.0088,"15":0.05,"5":0.0363}}}}}}
2019-11-25T18:04:10.278+0800 INFO beater/filebeat.go:443 Stopping filebeat
2019-11-25T18:04:10.279+0800 INFO crawler/crawler.go:139 Stopping Crawler
2019-11-25T18:04:10.279+0800 INFO crawler/crawler.go:149 Stopping 1 inputs
2019-11-25T18:04:10.280+0800 INFO cfgfile/reload.go:229 Dynamic config reloader stopped
2019-11-25T18:04:10.282+0800 INFO input/input.go:149 input ticker stopped
2019-11-25T18:04:10.284+0800 INFO input/input.go:167 Stopping Input: 16752264264616077088
2019-11-25T18:04:10.285+0800 INFO crawler/crawler.go:165 Crawler stopped
2019-11-25T18:04:10.285+0800 INFO registrar/registrar.go:367 Stopping Registrar
2019-11-25T18:04:10.285+0800 INFO registrar/registrar.go:293 Ending Registrar
2019-11-25T18:04:10.306+0800 INFO [monitoring] log/log.go:153 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":800,"time":{"ms":807}},"total":{"ticks":2680,"time":{"ms":2693},"value":2680},"user":{"ticks":1880,"time":{"ms":1886}}},"handles":{"limit":{"hard":65536,"soft":65536},"open":6},"info":{"ephemeral_id":"9b083e50-ee97-4b0b-879b-43a6c4a6b312","uptime":{"ms":901100}},"memstats":{"gc_next":5010656,"memory_alloc":2835768,"memory_total":54795936,"rss":36265984},"runtime":{"goroutines":13}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"type":"logstash"},"pipeline":{"clients":0,"events":{"active":0,"filtered":4,"total":4}}},"registrar":{"states":{"current":4,"update":4},"writes":{"success":5,"total":5}},"system":{"cpu":{"cores":8},"load":{"1":0.07,"15":0.4,"5":0.29,"norm":{"1":0.0088,"15":0.05,"5":0.0363}}}}}}
2019-11-25T18:04:10.307+0800 INFO [monitoring] log/log.go:154 Uptime: 15m1.115983263s
2019-11-25T18:04:10.307+0800 INFO [monitoring] log/log.go:131 Stopping metrics logging.
2019-11-25T18:04:10.307+0800 INFO instance/beat.go:431 filebeat stopped.
2019-11-25T18:04:09.341+0800 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":790,"time":{"ms":14}},"total":{"ticks":2660,"time":{"ms":36},"value":2660},"user":{"ticks":1870,"time":{"ms":22}}},"handles":{"limit":{"hard":65536,"soft":65536},"open":6},"info":{"ephemeral_id":"9b083e50-ee97-4b0b-879b-43a6c4a6b312","uptime":{"ms":900142}},"memstats":{"gc_next":5010656,"memory_alloc":2529576,"memory_total":54489744},"runtime":{"goroutines":23}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":4}},"system":{"load":{"1":0.07,"15":0.4,"5":0.29,"norm":{"1":0.0088,"15":0.05,"5":0.0363}}}}}}
2019-11-25T18:04:10.278+0800 INFO beater/filebeat.go:443 Stopping filebeat
2019-11-25T18:04:10.279+0800 INFO crawler/crawler.go:139 Stopping Crawler
2019-11-25T18:04:10.279+0800 INFO crawler/crawler.go:149 Stopping 1 inputs
2019-11-25T18:04:10.280+0800 INFO cfgfile/reload.go:229 Dynamic config reloader stopped
2019-11-25T18:04:10.282+0800 INFO input/input.go:149 input ticker stopped
2019-11-25T18:04:10.284+0800 INFO input/input.go:167 Stopping Input: 16752264264616077088
2019-11-25T18:04:10.285+0800 INFO crawler/crawler.go:165 Crawler stopped
2019-11-25T18:04:10.285+0800 INFO registrar/registrar.go:367 Stopping Registrar
2019-11-25T18:04:10.285+0800 INFO registrar/registrar.go:293 Ending Registrar
2019-11-25T18:04:10.306+0800 INFO [monitoring] log/log.go:153 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":800,"time":{"ms":807}},"total":{"ticks":2680,"time":{"ms":2693},"value":2680},"user":{"ticks":1880,"time":{"ms":1886}}},"handles":{"limit":{"hard":65536,"soft":65536},"open":6},"info":{"ephemeral_id":"9b083e50-ee97-4b0b-879b-43a6c4a6b312","uptime":{"ms":901100}},"memstats":{"gc_next":5010656,"memory_alloc":2835768,"memory_total":54795936,"rss":36265984},"runtime":{"goroutines":13}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"type":"logstash"},"pipeline":{"clients":0,"events":{"active":0,"filtered":4,"total":4}}},"registrar":{"states":{"current":4,"update":4},"writes":{"success":5,"total":5}},"system":{"cpu":{"cores":8},"load":{"1":0.07,"15":0.4,"5":0.29,"norm":{"1":0.0088,"15":0.05,"5":0.0363}}}}}}
2019-11-25T18:04:10.307+0800 INFO [monitoring] log/log.go:154 Uptime: 15m1.115983263s
2019-11-25T18:04:10.307+0800 INFO [monitoring] log/log.go:131 Stopping metrics logging.
2019-11-25T18:04:10.307+0800 INFO instance/beat.go:431 filebeat stopped.
5 个回复
Kuange - 90后IT男
赞同来自: a953546597
imwesley
赞同来自: a953546597
pzxsheng
赞同来自:
Florence - 待我光头之日
赞同来自:
henryzhang
赞同来自: