最近在ELK架构中启动filebeat时,启动失败,检查启动节点不存在
查看/var/log/message中报错日志,有如下内容
filebeat: Exiting:error loading config file:yaml:line 193: did not find expected key
原因 :
根据错误提示,猜测/etc/filebeat/filebeat.yml配置存在错误,
解决:下载filebeat.yml配置,找到对应报错行,错误如下
错误很明显,缩进格式错误,导致配置报错,修改缩进即可解决 ,filebeat.yml对缩进要求很严格
原文:https://www.cnblogs.com/almost-lover/p/12553684.html