[Solved] Filebeat startup error: Exiting: error loading config file: yaml: line 29: did not find expected key

Error when starting filebeat

[[email protected] filebeat]# ./filebeat -e -c filebeat.yml
Exiting: error loading config file: yaml: line 29: did not find expected key

Find the 29 lines of the configuration file. There is no problem with the content of the configuration file. Find the reason, search various posts and blogs, and say that it may be due to spaces

Modify the space again, keep the paths consistent with the fields, and delete the space in front of the field

Start again and you can start normally

Similar Posts: