filebeat pod重新启动多次,没有在kibana中获得日志



我们使用ELK来记录和监视我的AKS集群。但有时filebeat pod正在重新启动,无法选择日志进入弹性搜索。

[![1]][1]

这里也有pod日志。

2021-08-09T12:10:04.191Z INFO [monitoring] log/log. log。过去30年的非零指标{"监控"; {"指标;;{"beat"{"cpu"{"煤气报修:{"ticks" 5128640,"time":{"ms" 722}},"total":{"ticks" 10563900,"time":{"ms" 1266},"value": 10563900},"user":{"ticks" 5435260,"time":{"ms" 544}}},"handles":{"limit"{"hard" 1048576,"soft": 1048576},"open": 12},"info":{"ephemeral_id"12737862 - 0 - ffc - 4805 - 8 e49-d06e61ae95ad"uptime":{"ms" 228300048}},"memstats":{"gc_next" 75621616,"memory_alloc": 43143552,"memory_total": 11734470608},"runtime":{"goroutines" 30}},"filebeat":{"harvester"{"open_files" 0,"running": 0}},"libbeat":{"config"{"module"{"running" 0}},"pipeline":{"clients" 1、"events":{"active":"registrar" 1}}}:{"states"{"current" 15061}},"煤气报修:{"load"{"1":2.41,"15":2.22,,5":2.36,"norm":{"1":0.6025,"15":0.555,,5":0.59}}}}}}

所以,有没有人建议什么可能是重新启动pod多次的原因,以及解决这个问题的方法是什么?[1]: https://i.stack.imgur.com/h5ABD.png

有时由于我们设置的CPU和内存限制而发生这种情况。描述您的pod以了解重新启动的原因。如果原因是OOMKilled然后检查下面的命令来验证filebeat pod的当前使用情况。

kubectl top pods -n namespace

根据top命令的输出,更改(增加或描述)您的pod清单的CPU和内存限制。

最新更新