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