Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

ElasticSearch Error – filebeat – filebeat.yml – did not find expected key

Errors

[ec2-user@ip-172-31-9-17 filebeat-7.2.0-linux-x86_64]$ sudo vi filebeat.yml
[ec2-user@ip-172-31-9-17 filebeat-7.2.0-linux-x86_64]$ sudo ./filebeat -e -c filebeat.yml -d          "publish"
Exiting: error loading config file: yaml: line 161: did not find expected key

Solutions

Check filebeat.yml: Only one file beat output is supported …check #output.elasticsearch is comments

Rajesh Kumar
Follow me